Свойство | Type | Description | |
---|---|---|---|
$holder | pocketmine\inventory\InventoryHolder | ||
$maxStackSize | integer | ||
$name | string | ||
$size | integer | ||
$slots | |||
$title | string | ||
$type | |||
$viewers |
Méthode | 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 | |
Résultat | boolean |
public sendContents ( |
||
$target |
public setItem ( $index, |
||
$item |
public slotContains ( $slot, |
||
$item |
protected InventoryHolder,pocketmine\inventory $holder | ||
Résultat | pocketmine\inventory\InventoryHolder |
protected Item[],pocketmine\item $slots | ||
Résultat |
protected InventoryType,pocketmine\inventory $type | ||
Résultat |