public interface EnchantmentData extends ListData<Enchantment,EnchantmentData,ImmutableEnchantmentData>
Enchantment
s
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 Enchantment s on item stacks. |
addElement, addElement, addElements, asList, contains, get, getListValue, remove, remove, removeAll, removeAll, setElement, setElements
asImmutable, copy, fill, fill, from, set, set, set, set, transform
getContentVersion, toContainer
default ListValue<Enchantment> enchantments()
ListValue
of Enchantment
s on item stacks.Keys.ITEM_ENCHANTMENTS