CacheFunction 5.46.0
Extends DensityFunction
"minecraft:cache" marker. Values are pure, so this only memoizes the last position; inputs that do not depend on y are memoized per column, like vanilla's flat cache.
Properties
$flat
php
public readonly bool $flat$input
php
public readonly \pocketmine\world\generator\vanilla\density\DensityFunction $inputMethods
__construct()
php
public function __construct(\pocketmine\world\generator\vanilla\density\DensityFunction $input)children()
php
public function children() : arraycompute()
php
public function compute(float $x, float $y, float $z) : float