PocketMine
|
Public Member Functions | |
__construct (InventoryHolder $holder, Inventory $resultInventory, InventoryType $inventoryType) | |
getResultInventory () | |
getSize () | |
Public Member Functions inherited from BaseInventory | |
__construct (InventoryHolder $holder, InventoryType $type, array $items=[], $overrideSize=null, $overrideTitle=null) | |
getSize () | |
setSize ($size) | |
getMaxStackSize () | |
getName () | |
getTitle () | |
getItem ($index) | |
getContents () | |
setContents (array $items) | |
setItem ($index, Item $item) | |
contains (Item $item) | |
all (Item $item) | |
remove (Item $item) | |
first (Item $item) | |
firstEmpty () | |
canAddItem (Item $item) | |
clear ($index) | |
clearAll () | |
getViewers () | |
getHolder () | |
setMaxStackSize ($size) | |
open (Player $who) | |
close (Player $who) | |
onOpen (Player $who) | |
onClose (Player $who) | |
onSlotChange ($index, $before) | |
sendContents ($target) | |
sendSlot ($index, $target) | |
getType () | |
Public Member Functions inherited from Inventory | |
addItem (...$slots) | |
removeItem (...$slots) | |
Additional Inherited Members | |
Data Fields inherited from Inventory | |
const | MAX_STACK = 64 |
Protected Attributes inherited from BaseInventory | |
$type | |
$maxStackSize = Inventory::MAX_STACK | |
$size | |
$name | |
$title | |
$slots = [] | |
$viewers = [] | |
$holder | |
Manages crafting operations This class includes future methods for shaped crafting
TODO: add small matrix inventory
__construct | ( | InventoryHolder | $holder, |
Inventory | $resultInventory, | ||
InventoryType | $inventoryType | ||
) |
InventoryHolder | $holder | |
Inventory | $resultInventory | |
InventoryType | $inventoryType |
getResultInventory | ( | ) |