Class InterfaceItemGetter
java.lang.Object
com.ordwen.odailyquests.tools.externals.ExternalItemGetter
com.ordwen.odailyquests.commands.interfaces.playerinterface.items.getters.ItemGetter
com.ordwen.odailyquests.commands.interfaces.playerinterface.items.getters.InterfaceItemGetter
- All Implemented Interfaces:
IInterfaceItem,IItemGetter,IExternalItemGetter
- Direct Known Subclasses:
PlayerHead,PlayerQuestsInterface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigurationError(String itemIndex, String parameter, String reason) Display an error message in the console when an interface item cannot be loaded.org.bukkit.inventory.ItemStackgetCustomHead(String texture, String questIndex, String parameter) Get a custom head.org.bukkit.inventory.ItemStackgetCustomModelDataItem(String customModelData, String questIndex, String parameter) Get an item with custom model data.org.bukkit.inventory.ItemStackGet an item from a string.org.bukkit.inventory.ItemStackgetItemsAdderItem(String namespace, String itemIndex, String parameter) Get an item from ItemsAdder.org.bukkit.inventory.ItemStackgetMMOItemsItem(String namespace, String itemIndex, String parameter) Get an item from MMOItems.org.bukkit.inventory.ItemStackgetNexoItem(String namespace, String itemIndex, String parameter) Get an item from Nexo.org.bukkit.inventory.ItemStackgetOraxenItem(String namespace, String itemIndex, String parameter) Get an item from Oraxen.Methods inherited from class com.ordwen.odailyquests.commands.interfaces.playerinterface.items.getters.ItemGetter
getCustomModelDataItemMethods inherited from class com.ordwen.odailyquests.tools.externals.ExternalItemGetter
getCustomHead, getItemsAdderItem, getMMOItemsItem, getNexoItem, getOraxenItem
-
Constructor Details
-
InterfaceItemGetter
public InterfaceItemGetter()
-
-
Method Details
-
getItem
Get an item from a string.- Specified by:
getItemin interfaceIInterfaceItem- Parameters:
material- the material of the itemitemIndex- the index of the item in the fileparameter- the parameter involved- Returns:
- the ItemStack or null if the item cannot be loaded
-
getOraxenItem
public org.bukkit.inventory.ItemStack getOraxenItem(String namespace, String itemIndex, String parameter) Get an item from Oraxen.- Specified by:
getOraxenItemin interfaceIInterfaceItem- Parameters:
namespace- the namespace of the itemitemIndex- the index of the item in the fileparameter- the parameter involved- Returns:
- the ItemStack or null if the item cannot be loaded
-
getNexoItem
public org.bukkit.inventory.ItemStack getNexoItem(String namespace, String itemIndex, String parameter) Get an item from Nexo.- Specified by:
getNexoItemin interfaceIInterfaceItem- Parameters:
namespace- the namespace of the itemitemIndex- the index of the item in the fileparameter- the parameter involved- Returns:
- the ItemStack or null if the item cannot be loaded
-
getItemsAdderItem
public org.bukkit.inventory.ItemStack getItemsAdderItem(String namespace, String itemIndex, String parameter) Get an item from ItemsAdder.- Specified by:
getItemsAdderItemin interfaceIInterfaceItem- Parameters:
namespace- the namespace of the itemitemIndex- the index of the item in the fileparameter- the parameter involved- Returns:
- the ItemStack or null if the item cannot be loaded
-
getMMOItemsItem
public org.bukkit.inventory.ItemStack getMMOItemsItem(String namespace, String itemIndex, String parameter) Get an item from MMOItems.- Specified by:
getMMOItemsItemin interfaceIInterfaceItem- Parameters:
namespace- the namespace of the itemitemIndex- the index of the item in the fileparameter- the parameter involved- Returns:
- the ItemStack or null if the item cannot be loaded
-
getCustomHead
public org.bukkit.inventory.ItemStack getCustomHead(String texture, String questIndex, String parameter) Get a custom head.- Specified by:
getCustomHeadin interfaceIInterfaceItem- Parameters:
texture- the texture of the headquestIndex- the index of the quest in the fileparameter- the parameter involved- Returns:
- the ItemStack or null if the item cannot be loaded
-
getCustomModelDataItem
public org.bukkit.inventory.ItemStack getCustomModelDataItem(String customModelData, String questIndex, String parameter) Get an item with custom model data.- Specified by:
getCustomModelDataItemin interfaceIInterfaceItem- Parameters:
customModelData- the custom model data of the itemquestIndex- the index of the quest in the fileparameter- the parameter involved- Returns:
- the ItemStack or null if the item cannot be loaded
-
configurationError
Display an error message in the console when an interface item cannot be loaded.- Specified by:
configurationErrorin interfaceIInterfaceItem- Parameters:
itemIndex- the index of the item in the fileparameter- the parameter that caused the errorreason- the reason of the error
-