public class CurrencyMenu extends java.lang.Object implements WauzInventory
WauzCurrency
Constructor and Description |
---|
CurrencyMenu() |
Modifier and Type | Method and Description |
---|---|
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)
No actions available, so all clicks are canceled.
|
static void |
setCurrencyCategoryDisplay(org.bukkit.inventory.Inventory menu,
org.bukkit.entity.Player player,
WauzCurrencyCategory category,
int index)
Sets a currency category display to an inventory slot.
|
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.WauzCurrency.getCurrencyCategories()
,
setCurrencyCategoryDisplay(Inventory, Player, WauzCurrencyCategory, int)
,
MenuUtils.setBorders(Inventory)
public static void setCurrencyCategoryDisplay(org.bukkit.inventory.Inventory menu, org.bukkit.entity.Player player, WauzCurrencyCategory category, int index)
menu
- The menu inventory.player
- The player whose currencies should be shown.category
- The category of which the currencies should be shown.index
- The slot to use in the inventory.WauzCurrencyCategory.getCurrencies()
public void selectMenuPoint(org.bukkit.event.inventory.InventoryClickEvent event)
selectMenuPoint
in interface WauzInventory
event
- The inventory click event.