接口 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_345955_) float
calculate
(int p_345587_) com.mojang.serialization.MapCodec
<? extends LevelBasedValue> codec()
static LevelBasedValue.Constant
constant
(float p_344768_) static LevelBasedValue.Lookup
lookup
(List<Float> p_352164_, LevelBasedValue p_352467_) static LevelBasedValue.Linear
perLevel
(float p_345221_) static LevelBasedValue.Linear
perLevel
(float p_346188_, float p_346397_)
-
字段详细资料
-
DISPATCH_CODEC
-
CODEC
-
-
方法详细资料
-
bootstrap
static com.mojang.serialization.MapCodec<? extends LevelBasedValue> bootstrap(Registry<com.mojang.serialization.MapCodec<? extends LevelBasedValue>> p_345955_) -
constant
-
perLevel
-
perLevel
-
lookup
-
calculate
float calculate(int p_345587_) -
codec
com.mojang.serialization.MapCodec<? extends LevelBasedValue> codec()
-