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 BinaryTagSerializer<LevelBasedValue> static final @NotNull BinaryTagSerializer<LevelBasedValue> -
Method Summary
Modifier and TypeMethodDescriptionfloatcalc(int level) static @NotNull DynamicRegistry<BinaryTagSerializer<? extends LevelBasedValue>> @NotNull BinaryTagSerializer<? extends LevelBasedValue> nbtType()
-
Field Details
-
TAGGED_NBT_TYPE
-
NBT_TYPE
-
-
Method Details
-
createDefaultRegistry
@Internal @NotNull static @NotNull DynamicRegistry<BinaryTagSerializer<? extends LevelBasedValue>> createDefaultRegistry() -
calc
float calc(int level) -
nbtType
-