Skip to content

DensityBounds 5.46.0 ​

final class · pocketmine\world\generator\vanilla\surface\DensityBounds · source

Conservative value range of a density function over a block box (interval arithmetic), used to skip whole cells where a material rule's density function can never be positive. Unknown node types use their declared range.

Methods ​

of() ​

php
public static function of(\pocketmine\world\generator\vanilla\density\DensityFunction $f, int $x0, int $y0, int $z0, int $x1, int $y1, int $z1, ?\pocketmine\world\generator\vanilla\surface\InterpolationCache $cache) : array

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