public interface EnchantmentData extends ListData<Enchantment,EnchantmentData,ImmutableEnchantmentData>
Enchantments
with an EnchantmentType and level.
Some enchantments are not compatible with some item types, so checking on the enchantment before setting is recommended.
| Modifier and Type | Method and Description |
|---|---|
default ListValue<Enchantment> |
enchantments()
Gets the
ListValue of Enchantments on item stacks. |
addElement, addElement, addElements, asList, contains, get, getListValue, remove, remove, removeAll, removeAll, setElement, setElementsasImmutable, copy, fill, fill, from, set, set, set, set, transformgetContentVersion, toContainerdefault ListValue<Enchantment> enchantments()
ListValue of Enchantments on item stacks.Keys.ITEM_ENCHANTMENTS