Skip to content

EnderChestInventory ​

class · pocketmine\block\inventory\EnderChestInventory · source

Extends DelegateInventory
Implements BlockInventory

EnderChestInventory is not a real inventory; it's just a gateway to the player's ender inventory.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\Position $holder, \pocketmine\inventory\PlayerEnderInventory $inventory)

animateBlock() protected ​

php
protected function animateBlock(bool $isOpen) : void

getCloseSound() protected ​

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

getEnderInventory() ​

php
public function getEnderInventory() : \pocketmine\inventory\PlayerEnderInventory

getOpenSound() protected ​

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

getViewerCount() ​

php
public function getViewerCount() : int

onClose() ​

php
public function onClose(\pocketmine\player\Player $who) : void

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