PreferAverageHardBlocks

class PreferAverageHardBlocks(neutralRange: Boolean) : Comparator<ItemStack>

We want to place average hard blocks such as stone or wood. We don't want to use obsidian or leaves first (high/low hardness).

Parameters

neutralRange

if enabled, there is a range of hardness values which are accepted as good. If disabled we prefer the closest to the ideal hardness value.

Constructors

Link copied to clipboard
constructor(neutralRange: Boolean)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
open override fun compare(o1: ItemStack, o2: ItemStack): Int
Link copied to clipboard
open fun reversed(): Comparator<ItemStack?>?
Link copied to clipboard
open fun thenComparing(other: Comparator<in ItemStack?>?): Comparator<ItemStack?>?
open fun <U : Comparable<in U?>?> thenComparing(keyExtractor: Function<in ItemStack?, out U?>?): Comparator<ItemStack?>?
open fun <U : Any?> thenComparing(keyExtractor: Function<in ItemStack?, out U?>?, keyComparator: Comparator<in U?>?): Comparator<ItemStack?>?
Link copied to clipboard
open fun thenComparingDouble(keyExtractor: ToDoubleFunction<in ItemStack?>?): Comparator<ItemStack?>?
Link copied to clipboard
open fun thenComparingInt(keyExtractor: ToIntFunction<in ItemStack?>?): Comparator<ItemStack?>?
Link copied to clipboard
open fun thenComparingLong(keyExtractor: ToLongFunction<in ItemStack?>?): Comparator<ItemStack?>?