Skip to content

RangeChoiceFunction 5.46.0 ​

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

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

Methods ​

__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() : 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.