Class EnchantmentWrapper

java.lang.Object
org.bukkit.enchantments.Enchantment
org.bukkit.enchantments.EnchantmentWrapper
All Implemented Interfaces:
Keyed, Translatable, Keyed, Translatable

@Deprecated(since="1.20.3", forRemoval=true) public abstract class EnchantmentWrapper extends Enchantment
Deprecated, for removal: This API element is subject to removal in a future version.
only for backwards compatibility, EnchantmentWrapper is no longer used.
A simple wrapper for ease of selecting Enchantments
  • Constructor Details

    • EnchantmentWrapper

      protected EnchantmentWrapper()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getEnchantment

      @NotNull public @NotNull Enchantment getEnchantment()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the enchantment bound to this wrapper
      Returns:
      Enchantment