Package cn.nukkit.inventory
Class ChestInventory
java.lang.Object
cn.nukkit.inventory.BaseInventory
cn.nukkit.inventory.ContainerInventory
cn.nukkit.inventory.ChestInventory
- All Implemented Interfaces:
Inventory
- Author:
- MagicDroidX (Nukkit Project)
-
Field Summary
Fields inherited from class cn.nukkit.inventory.BaseInventory
AIR_ITEM, holder, maxStackSize, name, size, slots, title, type, viewers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
若返回为true,则在inventory打开和关闭时会发生振动事件 (InventoryHolder为Vector3子类的前提下)void
void
void
void
setDoubleInventory
(DoubleChestInventory doubleInventory) Methods inherited from class cn.nukkit.inventory.ContainerInventory
calculateRedstone
Methods inherited from class cn.nukkit.inventory.BaseInventory
addItem, addListener, all, canAddItem, clear, clearAll, close, contains, decreaseCount, first, firstEmpty, getContents, getFreeSpace, getItem, getMaxStackSize, getName, getSize, getTitle, getType, getViewers, isEmpty, isFull, onSlotChange, open, remove, removeItem, removeListener, sendContents, sendContents, sendContents, sendSlot, sendSlot, setContents, setItem, setMaxStackSize, setSize
-
Field Details
-
doubleInventory
-
-
Constructor Details
-
ChestInventory
-
-
Method Details
-
getHolder
- Specified by:
getHolder
in interfaceInventory
- Overrides:
getHolder
in classBaseInventory
-
onOpen
@PowerNukkitDifference(info="Using new method to play sounds", since="1.4.0.0-PN") public void onOpen(Player who) - Specified by:
onOpen
in interfaceInventory
- Overrides:
onOpen
in classContainerInventory
-
onClose
@PowerNukkitDifference(info="Using new method to play sounds", since="1.4.0.0-PN") public void onClose(Player who) - Specified by:
onClose
in interfaceInventory
- Overrides:
onClose
in classContainerInventory
-
setDoubleInventory
-
getDoubleInventory
-
sendSlot
- Specified by:
sendSlot
in interfaceInventory
- Overrides:
sendSlot
in classBaseInventory
-
canCauseVibration
public boolean canCauseVibration()Description copied from class:ContainerInventory
若返回为true,则在inventory打开和关闭时会发生振动事件 (InventoryHolder为Vector3子类的前提下)- Overrides:
canCauseVibration
in classContainerInventory
- Returns:
- boolean
-