Class QuestsInterfaces
java.lang.Object
com.ordwen.odailyquests.commands.interfaces.QuestsInterfaces
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.InventorygetInterfaceFirstPage(String category, org.bukkit.entity.Player player) org.bukkit.inventory.InventorygetInterfaceNextPage(String category, int page, org.bukkit.entity.Player player) org.bukkit.inventory.InventorygetInterfacePage(String category, int page, org.bukkit.entity.Player player) Get the inventory for the specified category and page.org.bukkit.inventory.InventorygetInterfacePreviousPage(String category, int page, org.bukkit.entity.Player player) voidinitPaginationItemNames(org.bukkit.configuration.ConfigurationSection section) booleanisEmptyCaseItem(org.bukkit.inventory.ItemStack itemStack) voidloadAll()voidloadAllInterfaces(org.bukkit.configuration.ConfigurationSection section) voidloadSelectedInterface(String category, String inventoryName, org.bukkit.inventory.ItemStack emptyCaseItem, int neededInventories, List<AbstractQuest> quests) Load specified interface.
-
Constructor Details
-
QuestsInterfaces
-
-
Method Details
-
loadAll
public void loadAll() -
initPaginationItemNames
public void initPaginationItemNames(org.bukkit.configuration.ConfigurationSection section) -
loadAllInterfaces
public void loadAllInterfaces(org.bukkit.configuration.ConfigurationSection section) -
loadSelectedInterface
public void loadSelectedInterface(String category, String inventoryName, org.bukkit.inventory.ItemStack emptyCaseItem, int neededInventories, List<AbstractQuest> quests) Load specified interface.- Parameters:
inventoryName- name of interface.emptyCaseItem- item for empty-cases.quests- list of quests.
-
getInterfacePage
public org.bukkit.inventory.Inventory getInterfacePage(String category, int page, org.bukkit.entity.Player player) Get the inventory for the specified category and page.- Parameters:
category- category of the interface.page- page of the interface.player- player to get the interface for.- Returns:
- inventory for the specified category and page.
-
getInterfaceFirstPage
public org.bukkit.inventory.Inventory getInterfaceFirstPage(String category, org.bukkit.entity.Player player) -
getInterfaceNextPage
public org.bukkit.inventory.Inventory getInterfaceNextPage(String category, int page, org.bukkit.entity.Player player) -
getInterfacePreviousPage
public org.bukkit.inventory.Inventory getInterfacePreviousPage(String category, int page, org.bukkit.entity.Player player) -
isEmptyCaseItem
public boolean isEmptyCaseItem(org.bukkit.inventory.ItemStack itemStack) -
getNextPageItemName
-
getPreviousPageItemName
-