PHP Class pocketmine\inventory\DoubleChestInventory

Inheritance: extends ChestInventory, implements pocketmine\inventory\InventoryHolder
Mostrar archivo Open project: iTXTech/Genisys

Public Methods

Method Description
__construct ( Chest $left, Chest $right )
clear ( $index )
getContents ( )
getHolder ( )
getInventory ( )
getItem ( $index )
getLeftSide ( ) : ChestInventory
getRightSide ( ) : ChestInventory
onClose ( Player $who )
onOpen ( Player $who )
setContents ( array $items )
setItem ( $index, Item $item )

Method Details

__construct() public method

public __construct ( Chest $left, Chest $right )
$left pocketmine\tile\Chest
$right pocketmine\tile\Chest

clear() public method

public clear ( $index )

getContents() public method

public getContents ( )

getHolder() public method

public getHolder ( )

getInventory() public method

public getInventory ( )

getItem() public method

public getItem ( $index )

getLeftSide() public method

public getLeftSide ( ) : ChestInventory
return ChestInventory

getRightSide() public method

public getRightSide ( ) : ChestInventory
return ChestInventory

onClose() public method

public onClose ( Player $who )
$who pocketmine\Player

onOpen() public method

public onOpen ( Player $who )
$who pocketmine\Player

setContents() public method

public setContents ( array $items )
$items array

setItem() public method

public setItem ( $index, Item $item )
$item pocketmine\item\Item