net.minecraft.enchantment

public interface EnchantmentLevelBasedValue

net.minecraft.world.item.enchantment.LevelBasedValue
net.minecraft.class_9704
net.minecraft.enchantment.EnchantmentLevelBasedValue

Field summary

Modifier and TypeField
com.mojang.serialization.Codec<EnchantmentLevelBasedValue>
DISPATCH_CODEC
field_51689
BASE_CODEC
com.mojang.serialization.Codec<EnchantmentLevelBasedValue>
CODEC
field_51690
CODEC

Method summary

Modifier and TypeMethod
static com.mojang.serialization.MapCodec<? extends EnchantmentLevelBasedValue>
bootstrap(Registry<com.mojang.serialization.MapCodec<? extends LevelBasedValue>> registry)
method_60193(class_2378<com.mojang.serialization.MapCodec<? extends class_9704>> arg0)
registerAndGetDefault(Registry<com.mojang.serialization.MapCodec<? extends EnchantmentLevelBasedValue>> registry)
static EnchantmentLevelBasedValue$Constant
constant(float value)
method_60186(float arg0)
constant(float value)
static EnchantmentLevelBasedValue$Linear
perLevel(float base, float perLevelAboveFirst)
method_60187(float arg0, float arg1)
linear(float base, float perLevelAboveFirst)
static EnchantmentLevelBasedValue$Linear
perLevel(float perLevel)
method_60194(float arg0)
linear(float base)
static EnchantmentLevelBasedValue$Lookup
lookup(List<Float> values, LevelBasedValue fallback)
method_60987(List<Float> arg0, class_9704 arg1)
lookup(List<Float> values, EnchantmentLevelBasedValue fallback)
float
calculate(int level)
method_60188(int arg0)
getValue(int level)
com.mojang.serialization.MapCodec<? extends EnchantmentLevelBasedValue>
codec()
method_60185()
getCodec()
private static com.mojang.datafixers.util.Either
lambda$static$4(LevelBasedValue arg0)
method_60192(class_9704 arg0)
method_60192(EnchantmentLevelBasedValue type)
private static EnchantmentLevelBasedValue
lambda$static$1(com.mojang.datafixers.util.Either arg0)
method_60189(com.mojang.datafixers.util.Either arg0)
method_60189(com.mojang.datafixers.util.Either either)
private static EnchantmentLevelBasedValue
lambda$static$3(LevelBasedValue arg0)
method_60195(class_9704 arg0)
method_60195(EnchantmentLevelBasedValue type)
private static EnchantmentLevelBasedValue
lambda$static$2(LevelBasedValue$Constant arg0)
method_60191(class_9704$class_9706 arg0)
method_60191(EnchantmentLevelBasedValue$Constant type)
private static com.mojang.serialization.MapCodec
lambda$static$0(com.mojang.serialization.MapCodec arg0)
method_60190(com.mojang.serialization.MapCodec arg0)
method_60190(com.mojang.serialization.MapCodec codec)