Skip to content

FeatureContext 5.46.0 ​

final class · pocketmine\world\generator\vanilla\feature\FeatureContext · source

Everything a feature needs while decorating a chunk: the region, the random, the block data and the generator settings (vanilla's WorldGenLevel + ChunkGenerator + PlacementContext rolled into one).

Properties ​

$blocks ​

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

$genDepth ​

php
public readonly int $genDepth

$level ​

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

$minGenY ​

php
public readonly int $minGenY

$random ​

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

$registry ​

php
public readonly \pocketmine\world\generator\vanilla\feature\FeatureRegistry $registry

$seaLevel ​

php
public readonly int $seaLevel

$seed ​

php
public readonly int $seed

$survival ​

php
public readonly \pocketmine\world\generator\vanilla\feature\block\BlockSurvival $survival

$topFeature ​

php
public ?\pocketmine\world\generator\vanilla\feature\PlacedFeature $topFeature

Placed feature being decorated with a biome check (PlacementContext.topFeature()), or null.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\generator\vanilla\feature\FeatureLevel $level, \pocketmine\world\generator\vanilla\feature\FeatureRandom $random, \pocketmine\world\generator\vanilla\feature\block\JavaBlocks $blocks, \pocketmine\world\generator\vanilla\feature\block\BlockSurvival $survival, \pocketmine\world\generator\vanilla\feature\FeatureRegistry $registry, int $minGenY, int $genDe …

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