Skip to content

CopperChest 5.46.0 ​

class · pocketmine\block\CopperChest · source

Extends Chest
Implements CopperMaterial

Copper chest: a chest that pairs with copper chests of any oxidation like a normal chest, oxidizes over time and can be waxed and scraped like other copper blocks. Both halves of a double chest always change together.

Methods ​

getFuelTime() ​

php
public function getFuelTime() : int

onInteract() ​

php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : bool

onRandomTick() ​

php
public function onRandomTick() : void

ticksRandomly() ​

php
public function ticksRandomly() : bool

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