Skip to content

CopperGolemStatue 5.46.0 ​

class · pocketmine\block\CopperGolemStatue · source

Extends Transparent
Implements HorizontalFacing, CopperMaterial

Copper golem statue. A decorative block that faces the player, oxidizes over time and can be waxed and scraped like other copper blocks. Fully oxidized copper golems turn into statues; scraping an unwaxed, unoxidized statue with an axe brings the copper golem back (vanilla WeatheringCopperGolemStatueBlock). The pose (kept in a block entity in vanilla) is not implemented.

Methods ​

getSupportType() ​

php
public function getSupportType(int $facing) : \pocketmine\block\utils\SupportType

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

recalculateCollisionBoxes() protected ​

php
protected function recalculateCollisionBoxes() : array

revive() ​

php
public function revive() : \pocketmine\entity\golem\CopperGolem

Removes the statue and spawns an unoxidized copper golem looking the same way.

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.