Skip to content

IntervalSelectFunction 5.46.0 ​

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

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

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\generator\vanilla\density\DensityFunction $input, array $thresholds, array $functions)

children() ​

php
public function children() : array

compute() ​

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

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