public class ShulkerBoxInventory extends ContainerInventory
holder, maxStackSize, name, size, slots, title, type, viewers| Constructor and Description |
|---|
ShulkerBoxInventory(ShulkerBoxBlockEntity box) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAddItem(Item item) |
ShulkerBoxBlockEntity |
getHolder() |
void |
onClose(Player who) |
void |
onOpen(Player who) |
void |
sendSlot(int index,
Player... players) |
calculateRedstone, sendBlockEventPacketaddItem, all, 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, setSizepublic ShulkerBoxInventory(ShulkerBoxBlockEntity box)
public ShulkerBoxBlockEntity 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 boolean canAddItem(Item item)
canAddItem in interface InventorycanAddItem in class BaseInventorypublic void sendSlot(int index,
Player... players)
sendSlot in interface InventorysendSlot in class BaseInventoryCopyright © 2020. All rights reserved.