IntervalSelectFunction 5.46.0
Extends DensityFunction
"minecraft:interval_select": functions[i] for the first threshold the input is below, otherwise the last function. There is one more function than thresholds (deepslate 0.27.2 truncates the function list, vanilla does not).
Properties
$functions
php
public readonly array $functions$input
php
public readonly \pocketmine\world\generator\vanilla\density\DensityFunction $input$thresholds
php
public readonly array $thresholdsMethods
__construct()
php
public function __construct(\pocketmine\world\generator\vanilla\density\DensityFunction $input, array $thresholds, array $functions)children()
php
public function children() : arraycompute()
php
public function compute(float $x, float $y, float $z) : float