PHP Class pocketmine\inventory\DoubleChestInventory

Inheritance: extends ChestInventory, implements pocketmine\inventory\InventoryHolder
Afficher le fichier Open project: iTXTech/Genisys

Méthodes publiques

Méthode 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 méthode

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

clear() public méthode

public clear ( $index )

getContents() public méthode

public getContents ( )

getHolder() public méthode

public getHolder ( )

getInventory() public méthode

public getInventory ( )

getItem() public méthode

public getItem ( $index )

getLeftSide() public méthode

public getLeftSide ( ) : ChestInventory
Résultat ChestInventory

getRightSide() public méthode

public getRightSide ( ) : ChestInventory
Résultat ChestInventory

onClose() public méthode

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

onOpen() public méthode

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

setContents() public méthode

public setContents ( array $items )
$items array

setItem() public méthode

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