Interface EnchantmentManager

All Known Implementing Classes:
EnchantmentManagerImpl

public interface EnchantmentManager
This class is used to manage custom enchantments.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets a list of all registered custom enchantments.
    void
    reformatItemNameColours​(@NonNull org.bukkit.inventory.ItemStack result)
    This is used if an item is crafted with, or put into something like an anvil.
    void
    updateItemLoreEnchants​(@NonNull org.bukkit.inventory.ItemStack item)
    Update the item enchantment list lore.
  • Method Details

    • getEnchantments

      @NonNull List<CustomEnchantment> getEnchantments()
      Gets a list of all registered custom enchantments.
      Returns:
      a list of all registered custom enchantments
    • updateItemLoreEnchants

      void updateItemLoreEnchants(@NonNull org.bukkit.inventory.ItemStack item)
      Update the item enchantment list lore. This exists because custom enchantments don't show up by default, so need to be added in manually to the lore.
      Parameters:
      item - the item to update the lore of
    • reformatItemNameColours

      void reformatItemNameColours(@NonNull org.bukkit.inventory.ItemStack result)
      This is used if an item is crafted with, or put into something like an anvil. We are removing the colour codes from the raw name.
      Parameters:
      result - the result item that needs its name reformatting