Interface LevelBasedValue
- All Known Implementing Classes:
LevelBasedValue.Clamped
,LevelBasedValue.Constant
,LevelBasedValue.Fraction
,LevelBasedValue.LevelsSquared
,LevelBasedValue.Linear
,LevelBasedValue.Lookup
public interface LevelBasedValue
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
static final record
static final record
static final record
static final record
static final record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<LevelBasedValue> static final com.mojang.serialization.Codec
<LevelBasedValue> -
Method Summary
Modifier and TypeMethodDescriptionstatic 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_)
-
Field Details
-
DISPATCH_CODEC
-
CODEC
-
-
Method Details
-
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()
-