StructurePlaceContext 5.46.0
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 $postProcessPositions 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 $templatesMethods
__construct()
php
public function __construct(\pocketmine\world\generator\vanilla\feature\FeatureContext $feature, \pocketmine\world\generator\vanilla\structure\StructureEnvironment $env)postProcess()
php
public function postProcess() : voidApplies the pending post-processing (see $postProcess).
shapeUpdates()
php
public function shapeUpdates() : \pocketmine\world\generator\vanilla\structure\ShapeUpdates