EnchantmentBuilder
A builder for enchantments.
Functions
Sets the item types to which this enchantment can be applied to, for example, in an anvil.
Sets the item types for which this enchantment can show up in the enchanting table (if tableDiscoverable). If unspecified, defaults to the set of item types defined in enchants.
Sets the enchantments that are incompatible (exclusive) with this enchantment.
Sets the localization key of the enchantment.
Whether this enchantment can appear in the enchanting table. Defaults to false.
Configures the level range where the enchantment can appear in an enchanting table slot, based on the enchantment level.
Configures the level range where the enchantment can appear in an enchanting table slot.
Adds the entry of the element being build to the given tags.