接口 LevelBasedValue
- 所有已知实现类:
LevelBasedValue.Clamped
,LevelBasedValue.Constant
,LevelBasedValue.Fraction
,LevelBasedValue.LevelsSquared
,LevelBasedValue.Linear
,LevelBasedValue.Lookup
public interface LevelBasedValue
-
嵌套类概要
嵌套类修饰符和类型接口说明static final record
static final record
static final record
static final record
static final record
static final record
-
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.Codec
<LevelBasedValue> static final com.mojang.serialization.Codec
<LevelBasedValue> -
方法概要
修饰符和类型方法说明static com.mojang.serialization.MapCodec
<? extends LevelBasedValue> bootstrap
(Registry<com.mojang.serialization.MapCodec<? extends LevelBasedValue>> p_342464_) float
calculate
(int p_342618_) com.mojang.serialization.MapCodec
<? extends LevelBasedValue> codec()
static LevelBasedValue.Constant
constant
(float p_343866_) static LevelBasedValue.Lookup
lookup
(List<Float> p_342101_, LevelBasedValue p_345072_) static LevelBasedValue.Linear
perLevel
(float p_343073_) static LevelBasedValue.Linear
perLevel
(float p_343120_, float p_345457_)
-
字段详细资料
-
DISPATCH_CODEC
-
CODEC
-
-
方法详细资料
-
bootstrap
static com.mojang.serialization.MapCodec<? extends LevelBasedValue> bootstrap(Registry<com.mojang.serialization.MapCodec<? extends LevelBasedValue>> p_342464_) -
constant
-
perLevel
-
perLevel
-
lookup
-
calculate
float calculate(int p_342618_) -
codec
com.mojang.serialization.MapCodec<? extends LevelBasedValue> codec()
-