Skip to content

KernelFunction 5.46.0 ​

final class · pocketmine\world\generator\vanilla\compiler\KernelFunction · source

Extends DensityFunction

Exposes one generated kernel method as a density function (for code that takes DensityFunction objects).

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\generator\vanilla\compiler\CompiledKernel $kernel, int $role, \pocketmine\world\generator\vanilla\density\DensityFunction $original)

children() ​

php
public function children() : array

compute() ​

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

dependsOnY() ​

php
public function dependsOnY() : bool

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