net.minecraft.world.item.enchantment

public interface LevelBasedValue

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

Field summary

Modifier and TypeField
com.mojang.serialization.Codec<LevelBasedValue>
a
DISPATCH_CODEC
field_51689
BASE_CODEC
com.mojang.serialization.Codec<LevelBasedValue>
b
CODEC
field_51690
CODEC

Method summary

Modifier and TypeMethod
static com.mojang.serialization.MapCodec<? extends LevelBasedValue>
a(ke<com.mojang.serialization.MapCodec<? extends ddh>> arg0)
bootstrap(Registry<com.mojang.serialization.MapCodec<? extends LevelBasedValue>> arg0)
method_60193(class_2378<com.mojang.serialization.MapCodec<? extends class_9704>> arg0)
registerAndGetDefault(Registry<com.mojang.serialization.MapCodec<? extends EnchantmentLevelBasedValue>> registry)
static LevelBasedValue$Constant
a(float arg0)
constant(float arg0)
method_60186(float arg0)
constant(float value)
static LevelBasedValue$Linear
a(float arg0, float arg1)
perLevel(float arg0, float arg1)
method_60187(float arg0, float arg1)
linear(float base, float perLevelAboveFirst)
static LevelBasedValue$Linear
b(float arg0)
perLevel(float arg0)
method_60194(float arg0)
linear(float base)
static LevelBasedValue$Lookup
a(List<Float> arg0, ddh arg1)
lookup(List<Float> arg0, LevelBasedValue arg1)
method_60987(List<Float> arg0, class_9704 arg1)
lookup(List<Float> values, EnchantmentLevelBasedValue fallback)
float
a(int arg0)
calculate(int arg0)
method_60188(int arg0)
getValue(int level)
com.mojang.serialization.MapCodec<? extends LevelBasedValue>
a()
codec()
method_60185()
getCodec()