Skip to content

AnimatedBlockInventoryTrait ​

trait · pocketmine\block\inventory\AnimatedBlockInventoryTrait · source

Methods ​

animateBlock() protected ​

php
abstract protected function animateBlock(bool $isOpen) : void

getCloseSound() protected ​

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

getOpenSound() protected ​

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

getViewerCount() ​

php
public function getViewerCount() : int

getViewers() ​

php
abstract public function getViewers() : array

onClose() ​

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

onOpen() ​

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

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