Package net.minestom.server.item.enchant
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 recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NotNull Codec<LevelBasedValue> static final @NotNull StructCodec<LevelBasedValue> -
Method Summary
Modifier and TypeMethodDescriptionfloatcalc(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
-