Package cn.nukkit.inventory
Class CampfireInventory
java.lang.Object
cn.nukkit.inventory.BaseInventory
cn.nukkit.inventory.ContainerInventory
cn.nukkit.inventory.CampfireInventory
- 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
ConstructorDescriptionCampfireInventory
(BlockEntityCampfire campfire) CampfireInventory
(BlockEntityCampfire furnace, InventoryType inventoryType) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canAddItem
(Item item) int
void
onSlotChange
(int index, Item before, boolean send) Methods inherited from class cn.nukkit.inventory.ContainerInventory
calculateRedstone, onClose, onOpen
Methods inherited from class cn.nukkit.inventory.BaseInventory
addItem, addListener, all, clear, clearAll, close, contains, decreaseCount, first, firstEmpty, getContents, getFreeSpace, getItem, getName, getSize, getTitle, getType, getViewers, isEmpty, isFull, open, remove, removeItem, removeListener, sendContents, sendContents, sendContents, sendSlot, sendSlot, sendSlot, setContents, setItem, setMaxStackSize, setSize
-
Constructor Details
-
CampfireInventory
-
CampfireInventory
-
-
Method Details
-
getHolder
- Specified by:
getHolder
in interfaceInventory
- Overrides:
getHolder
in classBaseInventory
-
onSlotChange
- Specified by:
onSlotChange
in interfaceInventory
- Overrides:
onSlotChange
in classBaseInventory
-
getMaxStackSize
public int getMaxStackSize()- Specified by:
getMaxStackSize
in interfaceInventory
- Overrides:
getMaxStackSize
in classBaseInventory
-
canAddItem
- Specified by:
canAddItem
in interfaceInventory
- Overrides:
canAddItem
in classBaseInventory
-