Skip to content

EndCityPiece 5.46.0 ​

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

Extends TemplatePiece

vanilla's EndCityPieces.EndCityPiece: one template of minecraft:end_city/, with its loot chests, shulker sentries and the elytra item frame of the ship.

Properties ​

$rotation ​

php
public readonly int $rotation

$templateName ​

php
public readonly string $templateName

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\generator\vanilla\structure\template\StructureTemplates $templates, string $templateName, int $x, int $y, int $z, int $rotation, bool $overwrite)

handleDataMarker() protected ​

php
protected function handleDataMarker(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, string $metadata, int $x, int $y, int $z, \pocketmine\world\generator\vanilla\structure\BoundingBox $box) : void

EndCityPiece.handleDataMarker()

makeSettings() protected ​

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

EndCityPiece.makeSettings(overwrite, rotation): structure blocks are never placed; air only when overwriting.

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