Skip to content

RuinedPortalPiece 5.46.0 ​

final class · pocketmine\world\generator\vanilla\structure\piece\RuinedPortalPiece · source

Extends TemplatePiece

vanilla's RuinedPortalPiece: the portal template with its processors, then netherrack spread on the ground around it, netherrack drips under it, and vines / leaves. Like vanilla, the whole portal is placed by the chunk holding the centre of its box.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\generator\vanilla\structure\template\StructureTemplates $templates, string $location, int $x, int $y, int $z, int $rotation, int $mirror, int $pivotX, int $pivotZ, string $placement, bool $airPocket, float $mossiness, bool $overgrown, bool $vines, bool $cold, bool $blackstone)

makeSettings() protected ​

php
protected function makeSettings(?\pocketmine\world\generator\vanilla\feature\block\JavaBlocks $blocks) : \pocketmine\world\generator\vanilla\structure\template\PlaceSettings

postProcess() ​

php
public function postProcess(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, \pocketmine\world\generator\vanilla\structure\BoundingBox $chunkBox, int $chunkX, int $chunkZ, array $pivot) : void

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