Interface LevelBasedValue
- All Known Implementing Classes:
LevelBasedValue.Clamped
,LevelBasedValue.Constant
,LevelBasedValue.Fraction
,LevelBasedValue.LevelsSquared
,LevelBasedValue.Linear
,LevelBasedValue.Lookup
public interface LevelBasedValue
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final record
static final record
static final record
static final record
static final record
static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NotNull Codec
<LevelBasedValue> static final @NotNull StructCodec
<LevelBasedValue> -
Method Summary
Modifier and TypeMethodDescriptionfloat
calc
(int level) @NotNull StructCodec
<? extends LevelBasedValue> codec()
static @NotNull DynamicRegistry
<StructCodec<? extends LevelBasedValue>>
-
Field Details
-
TAGGED_CODEC
-
CODEC
-
-
Method Details
-
createDefaultRegistry
@Internal @NotNull static @NotNull DynamicRegistry<StructCodec<? extends LevelBasedValue>> createDefaultRegistry() -
calc
float calc(int level) -
codec
-