public class WauzInventoryHolder
extends java.lang.Object
implements org.bukkit.inventory.InventoryHolder
Modifier and Type | Field and Description |
---|---|
private WauzInventory |
inventory
An inventory that can be used as menu or for other custom interaction mechanics.
|
Constructor and Description |
---|
WauzInventoryHolder(WauzInventory inventory)
Creates a new inventory holder for the given custom inventory.
|
Modifier and Type | Method and Description |
---|---|
void |
destroyInventory(org.bukkit.event.inventory.InventoryCloseEvent event)
Cleans up everything, so the inventory can be closed.
|
org.bukkit.inventory.Inventory |
getInventory()
Deprecated.
|
java.lang.String |
getInventoryName()
Gets the name of the custom inventory inside this holder.
|
void |
selectMenuPoint(org.bukkit.event.inventory.InventoryClickEvent event)
Checks if an event in this inventory was triggered by a player click.
|
private WauzInventory inventory
public WauzInventoryHolder(WauzInventory inventory)
inventory
- The custom inventory.@Deprecated public org.bukkit.inventory.Inventory getInventory()
getInventory
in interface org.bukkit.inventory.InventoryHolder
public java.lang.String getInventoryName()
public void selectMenuPoint(org.bukkit.event.inventory.InventoryClickEvent event)
event
- The inventory click event.public void destroyInventory(org.bukkit.event.inventory.InventoryCloseEvent event)
event
- The inventory close event.