net.minecraft.world.item.enchantment

public interface LevelBasedValue

def
net.minecraft.world.item.enchantment.LevelBasedValue
net.minecraft.class_9704
net.minecraft.unmapped.C_wrypqnyo
net.minecraft.enchantment.EnchantmentLevelBasedValue
net.minecraft.enchantment.LevelBasedValue
net.minecraft.src.C_336443_
net.minecraft.world.item.enchantment.ItemEnchantments

Field summary

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

Method summary

Modifier and TypeMethod
static com.mojang.serialization.MapCodec<? extends LevelBasedValue>
a(kd<com.mojang.serialization.MapCodec<? extends def>> arg0)
bootstrap(Registry<com.mojang.serialization.MapCodec<? extends LevelBasedValue>> arg0)
method_60193(class_2378<com.mojang.serialization.MapCodec<? extends class_9704>> arg0)
m_pmqpihlk(C_tqxyjqsk<com.mojang.serialization.MapCodec<? extends C_wrypqnyo>> arg0)
registerAndGetDefault(Registry<com.mojang.serialization.MapCodec<? extends EnchantmentLevelBasedValue>> registry)
bootstrap(Registry<com.mojang.serialization.MapCodec<? extends LevelBasedValue>> registry)
m_338459_(C_4705_<com.mojang.serialization.MapCodec<? extends C_336443_>> p_342464_)
static LevelBasedValue$Constant
a(float arg0)
constant(float arg0)
method_60186(float arg0)
m_sjjazqpj(float arg0)
constant(float value)
constant(float value)
m_338537_(float p_343866_)
static LevelBasedValue$Linear
a(float arg0, float arg1)
perLevel(float arg0, float arg1)
method_60187(float arg0, float arg1)
m_nsusjfmu(float arg0, float arg1)
linear(float base, float perLevelAboveFirst)
linear(float base, float perLevelAboveFirst)
m_340370_(float p_343120_, float p_345457_)
static LevelBasedValue$Linear
b(float arg0)
perLevel(float arg0)
method_60194(float arg0)
m_ifdetgkj(float arg0)
linear(float base)
perLevel(float base)
m_338510_(float p_343073_)
static LevelBasedValue$Lookup
a(List<Float> arg0, def arg1)
lookup(List<Float> arg0, LevelBasedValue arg1)
method_60987(List<Float> arg0, class_9704 arg1)
m_itgrvbce(List<Float> arg0, C_wrypqnyo arg1)
lookup(List<Float> values, EnchantmentLevelBasedValue fallback)
lookup(List<Float> values, LevelBasedValue fallback)
m_338781_(List<Float> p_342101_, C_336443_ p_345072_)
float
a(int arg0)
calculate(int arg0)
method_60188(int arg0)
m_ecciwafj(int arg0)
getValue(int level)
getValue(int level)
m_338646_(int arg0)
com.mojang.serialization.MapCodec<? extends LevelBasedValue>
a()
codec()
method_60185()
m_euxayzks()
getCodec()
getCodec()
m_338690_()