public class WauzMenu extends java.lang.Object implements WauzInventory, CustomItem
WauzModeMenu| Constructor and Description |
|---|
WauzMenu() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<org.bukkit.Material> |
getCustomItemMaterials()
Returns the materials that trigger events with the item.
|
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 |
use(org.bukkit.event.player.PlayerInteractEvent event)
Handles the interaction with the menu opener item.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroyInventorypublic java.lang.String getInventoryId()
getInventoryId in interface WauzInventorypublic java.util.List<WauzMode> getGamemodes()
getGamemodes in interface WauzInventorypublic void openInstance(org.bukkit.entity.Player player)
openInstance in interface WauzInventoryplayer - The player that should view the inventory.public void use(org.bukkit.event.player.PlayerInteractEvent event)
use in interface CustomItemevent - The interaction event.public java.util.List<org.bukkit.Material> getCustomItemMaterials()
getCustomItemMaterials in interface CustomItempublic static void open(org.bukkit.entity.Player player)
player - The player that should view the inventory.WauzModeMenu.open(Player),
SocialMenuParts.addMenuParts(Player, Inventory, int),
CollectionMenuParts.addMenuParts(Player, Inventory, int),
AbilityMenuParts.addMenuParts(Player, Inventory, int),
MenuUtils.setBorders(Inventory)public void selectMenuPoint(org.bukkit.event.inventory.InventoryClickEvent event)
selectMenuPoint in interface WauzInventoryevent - The inventory click event.SocialMenuParts.check(Player, ItemStack),
CollectionMenuParts.check(Player, ItemStack),
AbilityMenuParts.check(Player, ItemStack)