Property | Type | Description | |
---|---|---|---|
$holder | pocketmine\inventory\InventoryHolder | ||
$maxStackSize | integer | ||
$name | string | ||
$size | integer | ||
$slots | |||
$title | string | ||
$type | |||
$viewers |
Method | Description | |
---|---|---|
__construct ( pocketmine\inventory\InventoryHolder $holder, |
||
__destruct ( ) | ||
addItem ( $slots ) | ||
all ( |
||
canAddItem ( |
||
clear ( $index, $send = true ) | ||
clearAll ( $send = true ) | ||
close ( |
||
contains ( |
||
first ( |
||
firstEmpty ( ) | ||
firstOccupied ( ) | ||
getContents ( ) | ||
getHolder ( ) | ||
getHotbarSize ( ) | ||
getItem ( $index ) | ||
getMaxStackSize ( ) | ||
getName ( ) : string | ||
getSize ( ) | ||
getTitle ( ) | ||
getType ( ) | ||
getViewers ( ) : |
||
onClose ( |
||
onOpen ( |
||
onSlotChange ( $index, $before, $send ) | ||
open ( |
||
processSlotChange ( pocketmine\inventory\Transaction $transaction ) : boolean | ||
remove ( |
||
removeItem ( $slots ) | ||
sendContents ( |
||
sendSlot ( integer $index, |
||
setContents ( array $items, $send = true ) | ||
setItem ( $index, |
||
setMaxStackSize ( $size ) | ||
setSize ( $size ) | ||
slotContains ( $slot, |
public processSlotChange ( pocketmine\inventory\Transaction $transaction ) : boolean | ||
$transaction | pocketmine\inventory\Transaction | |
return | boolean |
public sendContents ( |
||
$target |
public setItem ( $index, |
||
$item |
public slotContains ( $slot, |
||
$item |
protected InventoryHolder,pocketmine\inventory $holder | ||
return | pocketmine\inventory\InventoryHolder |