Package io.lumine.mythic.core.items
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
-
Field Summary
Fields inherited from class io.lumine.utils.plugin.PluginModule
autoload, plugin, terminableRegistry
Fields inherited from interface io.lumine.utils.terminable.Terminable
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteItem
(MythicItem item) filterItems
(Collection<MythicItem> items, String ffilter) boolean
getAnvilDisabled
(org.bukkit.inventory.ItemStack item) int
getCurrentCustomDurability
(org.bukkit.inventory.ItemStack item) boolean
getEnchantingDisabled
(org.bukkit.inventory.ItemStack item) getItemAttribute
(String input) getItems()
org.bukkit.inventory.ItemStack
getItemStack
(String name) org.bukkit.inventory.ItemStack
getItemStack
(String name, int amount) int
getMaxCustomDurability
(org.bukkit.inventory.ItemStack item) getMythicTypeFromItem
(org.bukkit.inventory.ItemStack item) boolean
hasCustomDurability
(org.bukkit.inventory.ItemStack item) boolean
isMMOItem
(org.bukkit.inventory.ItemStack item) boolean
isMythicItem
(org.bukkit.inventory.ItemStack item) void
load
(MythicBukkit plugin) boolean
registerItem
(String internalName, MythicItem item) void
unload()
Methods inherited from class io.lumine.utils.plugin.ReloadableModule
reload
Methods inherited from class io.lumine.utils.plugin.PluginModule
bind, close, doBinding, getPlugin, setup
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.lumine.utils.terminable.Terminable
bindWith, closeAndReportException, closeSilently, hasTerminated, isClosed, terminate
Methods inherited from interface io.lumine.utils.terminable.TerminableConsumer
bindModule
Methods inherited from interface io.lumine.utils.terminable.TerminableModule
bindModuleWith
-
Constructor Details
-
ItemExecutor
-
-
Method Details
-
load
- Specified by:
load
in classio.lumine.utils.plugin.PluginModule<MythicBukkit>
-
unload
public void unload()- Specified by:
unload
in classio.lumine.utils.plugin.PluginModule<MythicBukkit>
-
getItems
- Specified by:
getItems
in interfaceItemManager
-
getItemNames
- Specified by:
getItemNames
in interfaceItemManager
-
getItemGroups
-
getItemGroupNames
-
getItem
- Specified by:
getItem
in interfaceItemManager
-
getMythicTypeFromItem
- Specified by:
getMythicTypeFromItem
in interfaceItemManager
-
isMythicItem
public boolean isMythicItem(org.bukkit.inventory.ItemStack item) - Specified by:
isMythicItem
in interfaceItemManager
-
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
-
getItemStack
-
registerItem
-
deleteItem
-
getItemAttribute
-
filterItems
- Specified by:
filterItems
in interfaceItemManager
-