Skip to content

NamedFunction 5.46.0 ​

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

Extends DensityFunction

A reference to a registered density function ("minecraft:overworld/continents"). Shared between all users, so backends can evaluate it once per position.

Properties ​

$input ​

php
public readonly \pocketmine\world\generator\vanilla\density\DensityFunction $input

$name ​

php
public readonly string $name

Methods ​

__construct() ​

php
public function __construct(string $name, \pocketmine\world\generator\vanilla\density\DensityFunction $input)

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.