Class CustomEnchantment

java.lang.Object
me.manossef.api.wrappers.CustomEnchantment

public class CustomEnchantment extends Object
This class contains the methods that register the custom enchantments to Enchantment. Plugins can construct custom enchantments using the EnchantmentWrapper class and then register them using the register(Enchantment) method.
  • Constructor Details

    • CustomEnchantment

      public CustomEnchantment()
  • Method Details

    • register

      public static void register(org.bukkit.enchantments.Enchantment ench)
      Collects all values of Enchantment to a list and checks if the provided enchantment is part of that list, registering it if not.
      Parameters:
      ench - the enchantment to check for.
    • registerEnchantment

      protected static void registerEnchantment(org.bukkit.enchantments.Enchantment ench)
      Registers the enchantment specified in the register(Enchantment) method to Enchantment. Internal use only. Use register(Enchantment).
      Parameters:
      ench - always the same as the parameter in the register(Enchantment) method.