DensityFunction 5.46.0
Node of a vanilla density function graph (worldgen/density_function), bound to a world seed. compute() is the reference (interpreted) evaluation; the generated code backend produces the same values.
Properties
$maxValue
php
public readonly float $maxValue$minValue
php
public readonly float $minValueMethods
__construct()
php
public function __construct(float $minValue, float $maxValue)children()
php
abstract public function children() : arraycompute()
php
abstract public function compute(float $x, float $y, float $z) : floatdependsOnY()
php
public function dependsOnY() : boolWhether the value can change with the y coordinate (false = can be cached per column).
