Skip to content

TrappedChest ​

class · pocketmine\block\TrappedChest · source

Extends Chest

Methods ​

getStrongPower() 5.46.0 ​

php
public function getStrongPower(int $face) : int

getWeakPower() 5.46.0 ​

php
public function getWeakPower(int $face) : int

The output is the number of players looking into the chest (both halves of a double chest share it).

isRedstoneSource() 5.46.0 ​

php
public function isRedstoneSource() : bool

onViewerCountChange() 5.46.0 ​

php
public function onViewerCountChange() : void

Called when a player opens or closes the chest.

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