CopperGolemStatue 5.46.0
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\SupportTypeonInteract()
php
public function onInteract(\pocketmine\item\Item $item, int $face, \pocketmine\math\Vector3 $clickVector, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : boolonRandomTick()
php
public function onRandomTick() : voidrecalculateCollisionBoxes() protected
php
protected function recalculateCollisionBoxes() : arrayrevive()
php
public function revive() : \pocketmine\entity\golem\CopperGolemRemoves the statue and spawns an unoxidized copper golem looking the same way.
ticksRandomly()
php
public function ticksRandomly() : bool