Skip to content

FindTopSurfaceFunction 5.46.0 ​

final class · pocketmine\world\generator\vanilla\density\FindTopSurfaceFunction · source

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 $upperBound

Methods ​

__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() : array

compute() ​

php
public function compute(float $x, float $y, float $z) : float

dependsOnY() ​

php
public function dependsOnY() : bool

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