RangeChoiceFunction 5.46.0
Extends DensityFunction
"minecraft:range_choice": whenInRange if minInclusive <= input < maxExclusive, else whenOutOfRange.
Properties
$input
php
public readonly \pocketmine\world\generator\vanilla\density\DensityFunction $input$maxExclusive
php
public readonly float $maxExclusive$minInclusive
php
public readonly float $minInclusive$whenInRange
php
public readonly \pocketmine\world\generator\vanilla\density\DensityFunction $whenInRange$whenOutOfRange
php
public readonly \pocketmine\world\generator\vanilla\density\DensityFunction $whenOutOfRangeMethods
__construct()
php
public function __construct(\pocketmine\world\generator\vanilla\density\DensityFunction $input, float $minInclusive, float $maxExclusive, \pocketmine\world\generator\vanilla\density\DensityFunction $whenInRange, \pocketmine\world\generator\vanilla\density\DensityFunction $whenOutOfRange)children()
php
public function children() : arraycompute()
php
public function compute(float $x, float $y, float $z) : float