DoubleChestInventory
Extends BaseInventory
Implements BlockInventory, InventoryHolder
Methods
__construct()
php
public function __construct(\pocketmine\block\inventory\ChestInventory $left, \pocketmine\block\inventory\ChestInventory $right)animateBlock() protected
php
protected function animateBlock(bool $isOpen) : voidgetCloseSound() protected
php
protected function getCloseSound() : \pocketmine\world\sound\SoundgetContents()
php
public function getContents(bool $includeEmpty = false) : arraygetInventory()
php
public function getInventory() : selfgetItem()
php
public function getItem(int $index) : \pocketmine\item\ItemgetLeftSide()
php
public function getLeftSide() : \pocketmine\block\inventory\ChestInventorygetMatchingItemCount() protected
php
protected function getMatchingItemCount(int $slot, \pocketmine\item\Item $test, bool $checkTags) : intgetOpenSound() protected
php
protected function getOpenSound() : \pocketmine\world\sound\SoundgetRightSide()
php
public function getRightSide() : \pocketmine\block\inventory\ChestInventorygetSize()
php
public function getSize() : intinternalSetContents() protected
php
protected function internalSetContents(array $items) : voidinternalSetItem() protected
php
protected function internalSetItem(int $index, \pocketmine\item\Item $item) : voidisSlotEmpty()
php
public function isSlotEmpty(int $index) : bool