Package cn.nukkit.inventory
Class CommandBlockInventory
java.lang.Object
cn.nukkit.inventory.CommandBlockInventory
- All Implemented Interfaces:
Inventory
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionItem[]
void
addListener
(InventoryListener listener) Deprecated.boolean
canAddItem
(Item item) boolean
clear
(int index, boolean send) void
clearAll()
void
boolean
void
decreaseCount
(int slot) int
int
firstEmpty
(Item item) getItem
(int index) int
getName()
int
getSize()
getTitle()
getType()
boolean
isEmpty()
boolean
isFull()
void
void
void
onSlotChange
(int index, Item before, boolean send) boolean
void
Item[]
removeItem
(Item... slots) void
removeListener
(InventoryListener listener) Deprecated.void
sendContents
(Player player) void
sendContents
(Player... players) void
sendContents
(Collection<Player> players) void
void
void
sendSlot
(int index, Collection<Player> players) void
setContents
(Map<Integer, Item> items) boolean
void
setMaxStackSize
(int size)
-
Field Details
-
holder
-
viewers
-
-
Constructor Details
-
CommandBlockInventory
-
-
Method Details
-
getSize
public int getSize() -
getMaxStackSize
public int getMaxStackSize()- Specified by:
getMaxStackSize
in interfaceInventory
-
setMaxStackSize
public void setMaxStackSize(int size) - Specified by:
setMaxStackSize
in interfaceInventory
-
getName
-
getTitle
-
getItem
-
setItem
-
addItem
-
canAddItem
- Specified by:
canAddItem
in interfaceInventory
-
removeItem
- Specified by:
removeItem
in interfaceInventory
-
getContents
- Specified by:
getContents
in interfaceInventory
-
setContents
- Specified by:
setContents
in interfaceInventory
-
sendContents
- Specified by:
sendContents
in interfaceInventory
-
sendContents
- Specified by:
sendContents
in interfaceInventory
-
sendContents
- Specified by:
sendContents
in interfaceInventory
-
sendSlot
-
sendSlot
-
sendSlot
-
contains
-
all
-
first
-
firstEmpty
- Specified by:
firstEmpty
in interfaceInventory
-
decreaseCount
public void decreaseCount(int slot) - Specified by:
decreaseCount
in interfaceInventory
-
remove
-
clear
public boolean clear(int index, boolean send) -
clearAll
public void clearAll() -
isFull
public boolean isFull() -
isEmpty
public boolean isEmpty() -
getViewers
- Specified by:
getViewers
in interfaceInventory
-
getType
-
getHolder
-
onOpen
-
open
-
close
-
onClose
-
onSlotChange
- Specified by:
onSlotChange
in interfaceInventory
-
addListener
Deprecated.- Specified by:
addListener
in interfaceInventory
-
removeListener
Deprecated.- Specified by:
removeListener
in interfaceInventory
-