Package net.minestom.server.item.enchant
Interface ValueEffect
- All Superinterfaces:
Enchantment.Effect
- All Known Implementing Classes:
ValueEffect.Add
,ValueEffect.AllOf
,ValueEffect.Multiply
,ValueEffect.RemoveBinomial
,ValueEffect.Set
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
static final record
static final record
static final record
static final record
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
apply
(float base, int level) static @NotNull DynamicRegistry
<BinaryTagSerializer<? extends ValueEffect>> @NotNull BinaryTagSerializer
<? extends ValueEffect> nbtType()
-
Field Details
-
NBT_TYPE
-
-
Method Details
-
createDefaultRegistry
@Internal @NotNull static @NotNull DynamicRegistry<BinaryTagSerializer<? extends ValueEffect>> createDefaultRegistry() -
apply
float apply(float base, int level) -
nbtType
-