Class QuestItemGetter
java.lang.Object
com.ordwen.odailyquests.tools.externals.ExternalItemGetter
com.ordwen.odailyquests.commands.interfaces.playerinterface.items.getters.ItemGetter
com.ordwen.odailyquests.quests.getters.QuestItemGetter
- All Implemented Interfaces:
IItemGetter
,IQuestItem
,IExternalItemGetter
- Direct Known Subclasses:
QuestsLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStack
getCustomHead
(String texture, String fileName, String questIndex, String parameter) Get a custom head.org.bukkit.inventory.ItemStack
getCustomModelDataItem
(String customModelData, String fileName, String questIndex, String parameter) Get an item with custom model data.org.bukkit.inventory.ItemStack
Get an item from a string.org.bukkit.inventory.ItemStack
getItemsAdderItem
(String namespace, String fileName, String questIndex, String parameter) Get an item from ItemsAdder.org.bukkit.inventory.ItemStack
getItemStackFromMaterial
(String material, String fileName, String questIndex, String parameter) Get an item stack from a material.org.bukkit.inventory.ItemStack
getMMOItemsItem
(String namespace, String fileName, String questIndex, String parameter) Get an item from MMOItems.org.bukkit.inventory.ItemStack
getNexoItem
(String namespace, String fileName, String questIndex, String parameter) Get an item from Nexo.org.bukkit.inventory.ItemStack
getOraxenItem
(String namespace, String fileName, String questIndex, String parameter) Get an item from Oraxen.org.bukkit.inventory.ItemStack
loadCustomItem
(org.bukkit.configuration.ConfigurationSection provided, String file, String index) Load a required item with custom name and lore.org.bukkit.inventory.meta.PotionMeta
loadPotionItem
(org.bukkit.configuration.ConfigurationSection section, String fileName, String questIndex, org.bukkit.inventory.ItemStack requiredItem) Load the potion attributes.Methods inherited from class com.ordwen.odailyquests.commands.interfaces.playerinterface.items.getters.ItemGetter
getCustomModelDataItem
Methods inherited from class com.ordwen.odailyquests.tools.externals.ExternalItemGetter
getCustomHead, getItemsAdderItem, getMMOItemsItem, getNexoItem, getOraxenItem
-
Constructor Details
-
QuestItemGetter
public QuestItemGetter()
-
-
Method Details
-
getItem
public org.bukkit.inventory.ItemStack getItem(String material, String fileName, String questIndex, String parameter) Get an item from a string.- Specified by:
getItem
in interfaceIQuestItem
- Parameters:
material
- the material of the itemfileName
- the name of the file where the item isquestIndex
- the index of the quest 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 fileName, String questIndex, String parameter) Get an item from Oraxen.- Specified by:
getOraxenItem
in interfaceIQuestItem
- Parameters:
namespace
- the namespace of the itemfileName
- the name of the file where the item isquestIndex
- the index of the quest 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 fileName, String questIndex, String parameter) Get an item from Nexo.- Specified by:
getNexoItem
in interfaceIQuestItem
- Parameters:
namespace
- the namespace of the itemfileName
- the name of the file where the item isquestIndex
- the index of the quest 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 fileName, String questIndex, String parameter) Get an item from ItemsAdder.- Specified by:
getItemsAdderItem
in interfaceIQuestItem
- Parameters:
namespace
- the namespace of the itemfileName
- the name of the file where the item isquestIndex
- the index of the quest 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 fileName, String questIndex, String parameter) Get an item from MMOItems.- Specified by:
getMMOItemsItem
in interfaceIQuestItem
- Parameters:
namespace
- the namespace of the itemfileName
- the name of the file where the item isquestIndex
- 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 fileName, String questIndex, String parameter) Get an item with custom model data.- Specified by:
getCustomModelDataItem
in interfaceIQuestItem
- Parameters:
customModelData
- the custom model data of the itemfileName
- the name of the file where the item isquestIndex
- the index of the quest 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 fileName, String questIndex, String parameter) Get a custom head.- Specified by:
getCustomHead
in interfaceIQuestItem
- Parameters:
texture
- the texture of the headfileName
- the name of the file where the item isquestIndex
- the index of the quest in the fileparameter
- the parameter involved- Returns:
- the ItemStack or null if the item cannot be loaded
-
loadCustomItem
public org.bukkit.inventory.ItemStack loadCustomItem(org.bukkit.configuration.ConfigurationSection provided, String file, String index) Load a required item with custom name and lore.- Parameters:
provided
- quest configuration sectionfile
- file nameindex
- quest index- Returns:
- the custom item
-
getItemStackFromMaterial
public org.bukkit.inventory.ItemStack getItemStackFromMaterial(String material, String fileName, String questIndex, String parameter) Get an item stack from a material.- Parameters:
material
- the material to getfileName
- the file namequestIndex
- the quest index- Returns:
- the item stack
-
loadPotionItem
public org.bukkit.inventory.meta.PotionMeta loadPotionItem(org.bukkit.configuration.ConfigurationSection section, String fileName, String questIndex, org.bukkit.inventory.ItemStack requiredItem) Load the potion attributes.- Parameters:
section
- quest sectionfileName
- file name where the quest isquestIndex
- quest index in the filerequiredItem
- current required item- Returns:
- potion meta
-