Skip to content

DoubleChestInventory ​

class · pocketmine\block\inventory\DoubleChestInventory · source

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) : void

getCloseSound() protected ​

php
protected function getCloseSound() : \pocketmine\world\sound\Sound

getContents() ​

php
public function getContents(bool $includeEmpty = false) : array

getInventory() ​

php
public function getInventory() : self

getItem() ​

php
public function getItem(int $index) : \pocketmine\item\Item

getLeftSide() ​

php
public function getLeftSide() : \pocketmine\block\inventory\ChestInventory

getMatchingItemCount() protected ​

php
protected function getMatchingItemCount(int $slot, \pocketmine\item\Item $test, bool $checkTags) : int

getOpenSound() protected ​

php
protected function getOpenSound() : \pocketmine\world\sound\Sound

getRightSide() ​

php
public function getRightSide() : \pocketmine\block\inventory\ChestInventory

getSize() ​

php
public function getSize() : int

internalSetContents() protected ​

php
protected function internalSetContents(array $items) : void

internalSetItem() protected ​

php
protected function internalSetItem(int $index, \pocketmine\item\Item $item) : void

isSlotEmpty() ​

php
public function isSlotEmpty(int $index) : bool

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.