Skip to content

ConstantFunction 5.46.0 ​

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

Extends DensityFunction

Properties ​

$value ​

php
public readonly float $value

Methods ​

__construct() ​

php
public function __construct(float $value, ?float $minValue = null, ?float $maxValue = null)

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.