public class BestiaryMenu extends java.lang.Object implements WauzInventory
WauzBestiaryEntry
Modifier and Type | Field and Description |
---|---|
private WauzBestiaryCategory |
category
The currently selected category.
|
private java.lang.String |
page
The name of the current bestiary page view.
|
private WauzBestiarySpecies |
species
The currently selected species.
|
Constructor and Description |
---|
BestiaryMenu() |
Modifier and Type | Method and Description |
---|---|
org.bukkit.inventory.ItemStack |
getEntryItemStack(org.bukkit.entity.Player player,
WauzBestiaryEntry entry)
Generates an item stack for displaying information about a bestiary entry.
|
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.
|
void |
showCategorySpecies(org.bukkit.entity.Player player)
Opens the menu for the given player.
|
void |
showSpeciesEntries(org.bukkit.entity.Player player)
Opens the menu for the given player.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroyInventory
private java.lang.String page
private WauzBestiaryCategory category
private WauzBestiarySpecies species
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.WauzBestiaryCategory
,
MenuUtils.setBorders(Inventory)
public void showCategorySpecies(org.bukkit.entity.Player player)
player
- The player that should view the inventory.WauzBestiarySpecies
,
MenuUtils.setBorders(Inventory)
public void showSpeciesEntries(org.bukkit.entity.Player player)
player
- The player that should view the inventory.WauzBestiaryEntry
,
MenuUtils.setBorders(Inventory)
public org.bukkit.inventory.ItemStack getEntryItemStack(org.bukkit.entity.Player player, WauzBestiaryEntry entry)
player
- The player looking at the information.entry
- The entry that will be shown.public void selectMenuPoint(org.bukkit.event.inventory.InventoryClickEvent event)
selectMenuPoint
in interface WauzInventory
event
- The inventory click event.