FindTopSurfaceFunction 5.46.0
Extends DensityFunction
"minecraft:find_top_surface": highest y (stepping down by cellHeight from upperBound) where density > 0.
Properties
$cellHeight
php
public readonly int $cellHeight$density
php
public readonly \pocketmine\world\generator\vanilla\density\DensityFunction $density$lowerBound
php
public readonly int $lowerBound$upperBound
php
public readonly \pocketmine\world\generator\vanilla\density\DensityFunction $upperBoundMethods
__construct()
php
public function __construct(\pocketmine\world\generator\vanilla\density\DensityFunction $density, \pocketmine\world\generator\vanilla\density\DensityFunction $upperBound, int $lowerBound, int $cellHeight)children()
php
public function children() : arraycompute()
php
public function compute(float $x, float $y, float $z) : floatdependsOnY()
php
public function dependsOnY() : bool