public sealed interface Enchantment
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
static final record
static interface
static 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 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 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 TypeMethodDescriptionint
static Enchantment.Builder
builder()
static DynamicRegistry
<Enchantment> createDefaultRegistry
(Registries registries) Creates a new registry for enchantments, loading the vanilla enchantments.effects()
maxCost()
int
maxLevel()
minCost()
@Nullable RegistryTag
<Material> slots()
int
weight()
-
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
Creates a new registry for enchantments, loading the vanilla enchantments.
- See Also:
-
description
Component description() -
exclusiveSet
RegistryTag<Enchantment> exclusiveSet() -
supportedItems
RegistryTag<Material> supportedItems() -
-
weight
int weight() -
maxLevel
int maxLevel() -
minCost
Enchantment.Cost minCost() -
maxCost
Enchantment.Cost maxCost() -
anvilCost
int anvilCost() -
slots
List<EquipmentSlotGroup> slots() -
effects
DataComponentMap effects()
-