Class PlayerQuestsInterface
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
com.ordwen.odailyquests.commands.interfaces.playerinterface.PlayerQuestsInterface
- All Implemented Interfaces:
IInterfaceItem
,IItemGetter
,IExternalItemGetter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the achieved string defined in the configuration.Get the complete get type string defined in the configuration.getConsoleCommands
(int slot) Get all console commands that can be executed by the item in the given slot.getInterfaceName
(org.bukkit.entity.Player player) Get the corresponding text for the interface name.getPlayerCommands
(int slot) Get all player commands that can be executed by the item in the given slot.org.bukkit.inventory.Inventory
getPlayerQuestsInterface
(org.bukkit.entity.Player player) Load the player quests inventory for the given player.Get the status string defined in the configuration.boolean
isCloseItem
(org.bukkit.inventory.ItemStack itemStack) Check if the item is used to close the inventory.boolean
isConsoleCommandItem
(int slot) Check if the item is used to execute a command as a console.boolean
isFillItem
(org.bukkit.inventory.ItemStack itemStack) Check if the item is used to fill the inventory.boolean
isPlayerCommandItem
(int slot) Check if the item is used to execute a command as a player.void
load()
Load player quests interface.Methods inherited from class com.ordwen.odailyquests.commands.interfaces.playerinterface.items.getters.InterfaceItemGetter
configurationError, getCustomHead, getCustomModelDataItem, getItem, getItemsAdderItem, getMMOItemsItem, getNexoItem, getOraxenItem
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
-
PlayerQuestsInterface
-
-
Method Details
-
load
public void load()Load player quests interface. -
getPlayerQuestsInterface
public org.bukkit.inventory.Inventory getPlayerQuestsInterface(org.bukkit.entity.Player player) Load the player quests inventory for the given player.- Parameters:
player
- player to load the inventory.- Returns:
- player quests inventory.
-
getInterfaceName
Get the corresponding text for the interface name.- Parameters:
player
- player to get the interface name.- Returns:
- the interface name.
-
isFillItem
public boolean isFillItem(org.bukkit.inventory.ItemStack itemStack) Check if the item is used to fill the inventory.- Parameters:
itemStack
- item to check.- Returns:
- true if the item is used to fill the inventory, false otherwise.
-
isCloseItem
public boolean isCloseItem(org.bukkit.inventory.ItemStack itemStack) Check if the item is used to close the inventory.- Parameters:
itemStack
- item to check.- Returns:
- true if the item is used to close the inventory, false otherwise.
-
isPlayerCommandItem
public boolean isPlayerCommandItem(int slot) Check if the item is used to execute a command as a player.- Parameters:
slot
- slot of the item.- Returns:
- true if the item is used to execute a player command, false otherwise.
-
isConsoleCommandItem
public boolean isConsoleCommandItem(int slot) Check if the item is used to execute a command as a console.- Parameters:
slot
- slot of the item.- Returns:
- true if the item is used to execute a console command, false otherwise.
-
getPlayerCommands
Get all player commands that can be executed by the item in the given slot.- Parameters:
slot
- slot of the item.- Returns:
- the player commands of the item.
-
getConsoleCommands
Get all console commands that can be executed by the item in the given slot.- Parameters:
slot
- slot of the item.- Returns:
- the console commands of the item.
-
getAchievedStr
Get the achieved string defined in the configuration.- Returns:
- the achieved string.
-
getProgressStr
Get the status string defined in the configuration.- Returns:
- the status string.
-
getCompleteGetTypeStr
Get the complete get type string defined in the configuration.- Returns:
- the complete get type string.
-