Skip to content

StructurePlaceContext 5.46.0 ​

final class · pocketmine\world\generator\vanilla\structure\StructurePlaceContext · source

What structure pieces see while they are placed in a chunk (vanilla's WorldGenRegion and the decoration random of the chunk, see StructureStart.placeInChunk()).

Properties ​

$blocks ​

php
public readonly \pocketmine\world\generator\vanilla\feature\block\JavaBlocks $blocks

$env ​

php
public readonly \pocketmine\world\generator\vanilla\structure\StructureEnvironment $env

$feature ​

php
public readonly \pocketmine\world\generator\vanilla\feature\FeatureContext $feature

$level ​

php
public readonly \pocketmine\world\generator\vanilla\feature\FeatureLevel $level

$postProcess ​

php
public array $postProcess

Positions of shape-dependent blocks placed by code-built pieces (StructurePiece.SHAPE_CHECK_BLOCKS), updated from their neighbours at the end of the chunk's decoration (vanilla's post-processing when the chunk becomes full).

$random ​

php
public readonly \pocketmine\world\generator\vanilla\feature\FeatureRandom $random

$seed ​

php
public readonly int $seed

$templates ​

php
public readonly \pocketmine\world\generator\vanilla\structure\template\StructureTemplates $templates

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\generator\vanilla\feature\FeatureContext $feature, \pocketmine\world\generator\vanilla\structure\StructureEnvironment $env)

postProcess() ​

php
public function postProcess() : void

Applies the pending post-processing (see $postProcess).

shapeUpdates() ​

php
public function shapeUpdates() : \pocketmine\world\generator\vanilla\structure\ShapeUpdates

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