public class QuestMenu extends java.lang.Object implements WauzInventory
WauzQuest
Constructor and Description |
---|
QuestMenu() |
Modifier and Type | Method and Description |
---|---|
static void |
find(org.bukkit.entity.Player player)
Opens the menu for the given player.
|
java.util.List<WauzMode> |
getGamemodes() |
java.lang.String |
getInventoryId() |
static void |
open(org.bukkit.entity.Player player)
Opens the menu for the given player.
|
void |
openInstance(org.bukkit.entity.Player player)
Opens a new inventory of this type for the given player.
|
void |
selectMenuPoint(org.bukkit.event.inventory.InventoryClickEvent event)
Checks if an event in this inventory was triggered by a player click.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroyInventory
public java.lang.String getInventoryId()
getInventoryId
in interface WauzInventory
public java.util.List<WauzMode> getGamemodes()
getGamemodes
in interface WauzInventory
public void openInstance(org.bukkit.entity.Player player)
openInstance
in interface WauzInventory
player
- The player that should view the inventory.public static void open(org.bukkit.entity.Player player)
player
- The player that should view the inventory.PlayerConfigurator.getCharacterRunningMainQuest(Player)
,
QuestMenuItems.generateQuest(Player, String, int, Material)
,
QuestMenuItems.generateEmptyQuest(String)
,
PlayerConfigurator.getHideSpecialQuestsForCharacter(Player)
,
PlayerConfigurator.getHideCompletedQuestsForCharacter(Player)
public static void find(org.bukkit.entity.Player player)
player
- The player that should view the inventory.WauzQuest.getQuestsForLevel(int)
,
QuestMenuItems.generateUnacceptedQuest(Player, WauzQuest, int, boolean)
,
MenuUtils.setBorders(Inventory)
public void selectMenuPoint(org.bukkit.event.inventory.InventoryClickEvent event)
selectMenuPoint
in interface WauzInventory
event
- The inventory click event.find(Player)
,
PlayerConfigurator.setHideSpecialQuestsForCharacter(Player, boolean)
,
PlayerConfigurator.setHideCompletedQuestsForCharacter(Player, boolean)
,
WauzPlayerScoreboard.scheduleScoreboardRefresh(Player)
,
QuestRequirementChecker.trackQuestObjective()
,
WauzPlayerEventQuestCancel