PlacedFeature 5.46.0
A placed feature (worldgen/placed_feature): a configured feature and the placement modifiers that turn the origin into the positions where it is placed. Modifiers are applied depth-first, in order, like vanilla's FeaturePlacer.
Properties
$feature
php
public readonly \pocketmine\world\generator\vanilla\feature\Feature $feature$id
php
public readonly string $idMethods
__construct()
php
public function __construct(string $id, \pocketmine\world\generator\vanilla\feature\Feature $feature, array $modifiers)place()
php
public function place(\pocketmine\world\generator\vanilla\feature\FeatureContext $c, int $x, int $y, int $z) : boolPlacedFeature.place(): without biome check (nested features).
placeWithBiomeCheck()
php
public function placeWithBiomeCheck(\pocketmine\world\generator\vanilla\feature\FeatureContext $c, int $x, int $y, int $z) : boolFeaturePlacer.placeWithBiomeCheck(): the biome filter modifier checks this feature against the biome.
