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
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 @NotNull BinaryTagSerializer
<LevelBasedValue> static final @NotNull BinaryTagSerializer
<LevelBasedValue> -
Method Summary
Modifier and TypeMethodDescriptionfloat
calc
(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
-