public class ChestInventory extends ContainerInventory
| Modifier and Type | Field and Description |
|---|---|
protected DoubleChestInventory |
doubleInventory |
holder, maxStackSize, name, size, slots, title, type, viewers| Constructor and Description |
|---|
ChestInventory(Chest chest) |
| Modifier and Type | Method and Description |
|---|---|
DoubleChestInventory |
getDoubleInventory() |
Chest |
getHolder() |
void |
onClose(Player who) |
void |
onOpen(Player who) |
void |
sendSlot(int index,
Player... players) |
void |
setDoubleInventory(DoubleChestInventory doubleInventory) |
calculateRedstone, sendBlockEventPacketaddItem, all, canAddItem, clear, clearAll, close, contains, decreaseCount, first, firstEmpty, firstFit, firstNonEmpty, getContents, getFreeSpace, getItem, getMaxStackSize, getName, getSize, getTitle, getType, getViewers, increaseCount, isEmpty, isFull, onSlotChange, open, remove, removeItem, sendContents, sendContents, sendContents, sendSlot, sendSlot, setContents, setItem, setMaxStackSize, setSizeprotected DoubleChestInventory doubleInventory
public ChestInventory(Chest chest)
public Chest getHolder()
getHolder in interface InventorygetHolder in class BaseInventorypublic void onOpen(Player who)
onOpen in interface InventoryonOpen in class ContainerInventorypublic void onClose(Player who)
onClose in interface InventoryonClose in class ContainerInventorypublic void setDoubleInventory(DoubleChestInventory doubleInventory)
public DoubleChestInventory getDoubleInventory()
public void sendSlot(int index,
Player... players)
sendSlot in interface InventorysendSlot in class BaseInventoryCopyright © 2020. All rights reserved.