Package cn.nukkit.inventory
Class BarrelInventory
java.lang.Object
cn.nukkit.inventory.BaseInventory
cn.nukkit.inventory.ContainerInventory
cn.nukkit.inventory.BarrelInventory
- All Implemented Interfaces:
Inventory
-
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
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, getUnclonedItem, getViewers, isEmpty, isFull, onSlotChange, open, remove, removeItem, removeListener, sendContents, sendContents, sendContents, sendSlot, sendSlot, sendSlot, setContents, setItem, setMaxStackSize, setSize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cn.nukkit.inventory.Inventory
clear, first, setItem, setItemByPlayer
-
Constructor Details
-
BarrelInventory
-
-
Method Details
-
getHolder
- Specified by:
getHolder
in interfaceInventory
- Overrides:
getHolder
in classBaseInventory
-
onOpen
- Specified by:
onOpen
in interfaceInventory
- Overrides:
onOpen
in classContainerInventory
-
onClose
- Specified by:
onClose
in interfaceInventory
- Overrides:
onClose
in classContainerInventory
-
canCauseVibration
public boolean canCauseVibration()Description copied from class:ContainerInventory
若返回为true,则在inventory打开和关闭时会发生振动事件 (InventoryHolder为Vector3子类的前提下)- Overrides:
canCauseVibration
in classContainerInventory
- Returns:
- boolean
-