EnchantmentValueEstimator

Constructors

Link copied to clipboard
constructor(vararg weightedEnchantments: EnchantmentValueEstimator.WeightedEnchantment)

Types

Link copied to clipboard
class WeightedEnchantment(val enchantment: ResourceKey<Enchantment>, val factor: Float)

Functions

Link copied to clipboard
Link copied to clipboard
open override fun compare(o1: ItemStack, o2: ItemStack): Int
Link copied to clipboard
fun estimateValue(itemStack: ItemStack): Float
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?>?