Class ItemExecutor

java.lang.Object
io.lumine.utils.plugin.PluginModule<T>
io.lumine.utils.plugin.ReloadableModule<MythicBukkit>
io.lumine.mythic.core.items.ItemExecutor
All Implemented Interfaces:
ItemManager, io.lumine.utils.terminable.Terminable, io.lumine.utils.terminable.TerminableConsumer, io.lumine.utils.terminable.TerminableModule, AutoCloseable, org.bukkit.event.Listener

public class ItemExecutor extends io.lumine.utils.plugin.ReloadableModule<MythicBukkit> implements ItemManager, org.bukkit.event.Listener
  • Constructor Details

  • Method Details

    • load

      public void load(MythicBukkit plugin)
      Specified by:
      load in class io.lumine.utils.plugin.PluginModule<MythicBukkit>
    • unload

      public void unload()
      Specified by:
      unload in class io.lumine.utils.plugin.PluginModule<MythicBukkit>
    • getItems

      public Collection<MythicItem> getItems()
      Specified by:
      getItems in interface ItemManager
    • getItemNames

      public Collection<String> getItemNames()
      Specified by:
      getItemNames in interface ItemManager
    • getItemGroups

      public Collection<ItemGroup> getItemGroups()
    • getItemGroupNames

      public Collection<String> getItemGroupNames()
    • getItem

      public Optional<MythicItem> getItem(String name)
      Specified by:
      getItem in interface ItemManager
    • getMythicTypeFromItem

      public String getMythicTypeFromItem(org.bukkit.inventory.ItemStack item)
      Specified by:
      getMythicTypeFromItem in interface ItemManager
    • isMythicItem

      public boolean isMythicItem(org.bukkit.inventory.ItemStack item)
      Specified by:
      isMythicItem in interface ItemManager
    • isMMOItem

      public boolean isMMOItem(org.bukkit.inventory.ItemStack item)
    • hasCustomDurability

      public boolean hasCustomDurability(org.bukkit.inventory.ItemStack item)
    • getMaxCustomDurability

      public int getMaxCustomDurability(org.bukkit.inventory.ItemStack item)
    • getCurrentCustomDurability

      public int getCurrentCustomDurability(org.bukkit.inventory.ItemStack item)
    • getEnchantingDisabled

      public boolean getEnchantingDisabled(org.bukkit.inventory.ItemStack item)
    • getAnvilDisabled

      public boolean getAnvilDisabled(org.bukkit.inventory.ItemStack item)
    • getItemStack

      public org.bukkit.inventory.ItemStack getItemStack(String name)
    • getItemStack

      public org.bukkit.inventory.ItemStack getItemStack(String name, int amount)
    • registerItem

      public boolean registerItem(String internalName, MythicItem item)
    • deleteItem

      public void deleteItem(MythicItem item)
    • getItemAttribute

      public String getItemAttribute(String input)
    • filterItems

      public Collection<MythicItem> filterItems(Collection<MythicItem> items, String ffilter)
      Specified by:
      filterItems in interface ItemManager