public class LootContainer extends java.lang.Object implements WauzInventory
| Modifier and Type | Field and Description |
|---|---|
private org.bukkit.inventory.Inventory |
lootChest
The inventory instance to hold the loot.
|
| Constructor and Description |
|---|
LootContainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroyInventory(org.bukkit.event.inventory.InventoryCloseEvent event)
Cleans up everything, so the inventory can be closed.
|
java.lang.String |
getInventoryId() |
static void |
open(org.bukkit.entity.Player player,
java.util.List<org.bukkit.inventory.ItemStack> lootItemStacks)
Opens the menu 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 |
setLootChest(org.bukkit.inventory.Inventory lootChest) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGamemodes, openInstanceprivate org.bukkit.inventory.Inventory lootChest
public java.lang.String getInventoryId()
getInventoryId in interface WauzInventorypublic static void open(org.bukkit.entity.Player player,
java.util.List<org.bukkit.inventory.ItemStack> lootItemStacks)
player - The player that should view the inventory.lootItemStacks - The items to randomly scatter around the loot container.public void selectMenuPoint(org.bukkit.event.inventory.InventoryClickEvent event)
selectMenuPoint in interface WauzInventoryevent - The inventory click event.public void destroyInventory(org.bukkit.event.inventory.InventoryCloseEvent event)
destroyInventory in interface WauzInventoryevent - The inventory close event.public void setLootChest(org.bukkit.inventory.Inventory lootChest)
lootChest - The new inventory instance to hold the loot.