Package net.minestom.server.item.enchant
Interface Enchantment
public sealed interface Enchantment
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic final recordstatic interfacestatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final @NotNull Codec<RegistryKey<Enchantment>> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final NetworkBuffer.Type<RegistryKey<Enchantment>> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final @NotNull Codec<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> static final RegistryKey<Enchantment> -
Method Summary
Modifier and TypeMethodDescriptionintstatic @NotNull Enchantment.Builderbuilder()static @NotNull DynamicRegistry<Enchantment> createDefaultRegistry(@NotNull Registries registries) Creates a new registry for enchantments, loading the vanilla enchantments.@NotNull Component@NotNull DataComponentMapeffects()@NotNull RegistryTag<Enchantment> @NotNull Enchantment.CostmaxCost()intmaxLevel()@NotNull Enchantment.CostminCost()@Nullable RegistryTag<Material> @NotNull List<EquipmentSlotGroup> slots()@NotNull RegistryTag<Material> intweight()
-
Field Details
-
NETWORK_TYPE
-
CODEC
-
REGISTRY_CODEC
-
DEPTH_STRIDER
-
VANISHING_CURSE
-
EFFICIENCY
-
IMPALING
-
WIND_BURST
-
BANE_OF_ARTHROPODS
-
BINDING_CURSE
-
PUNCH
-
FLAME
-
RIPTIDE
-
BLAST_PROTECTION
-
FROST_WALKER
-
PROTECTION
-
FIRE_ASPECT
-
LOYALTY
-
SWEEPING_EDGE
-
FIRE_PROTECTION
-
QUICK_CHARGE
-
RESPIRATION
-
LUCK_OF_THE_SEA
-
SOUL_SPEED
-
DENSITY
-
POWER
-
SILK_TOUCH
-
CHANNELING
-
FORTUNE
-
LOOTING
-
BREACH
-
PIERCING
-
MENDING
-
FEATHER_FALLING
-
SHARPNESS
-
KNOCKBACK
-
SMITE
-
INFINITY
-
PROJECTILE_PROTECTION
-
THORNS
-
AQUA_AFFINITY
-
LURE
-
MULTISHOT
-
SWIFT_SNEAK
-
UNBREAKING
-
-
Method Details
-
builder
-
createDefaultRegistry
@Internal @NotNull static @NotNull DynamicRegistry<Enchantment> createDefaultRegistry(@NotNull @NotNull Registries registries) Creates a new registry for enchantments, loading the vanilla enchantments.
- See Also:
-
description
-
exclusiveSet
-
supportedItems
-
-
weight
int weight() -
maxLevel
int maxLevel() -
minCost
-
maxCost
-
anvilCost
int anvilCost() -
slots
-
effects
-