Skip to content

KernelFactory 5.46.0 ​

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

Generates (once per graph shape), caches on disk and loads the kernel class for a noise router. The generated file only depends on the worldgen data, not on the seed; it is require()d so that OPcache and the JIT can compile it like any other PHP file.

Constants ​

NAMESPACE ​

php
public const NAMESPACE = "pocketmine\\world\\generator\\vanilla\\compiled"

Properties ​

$batchCorners ​

php
public static bool $batchCorners

Evaluate cell corners column by column with vectorized (batch) code instead of point by point. Same values; much faster with the tracing JIT.

Methods ​

collectInterpolated() ​

php
public static function collectInterpolated(\pocketmine\world\generator\vanilla\density\DensityFunction $f, array &$out, array &$seen) : void

create() ​

php
public static function create(\pocketmine\world\generator\vanilla\NoiseRouter $router, string $cacheDir) : \pocketmine\world\generator\vanilla\compiler\CompiledKernel

jitMode() ​

php
public static function jitMode() : string

Returns "tracing", "function" or "off" for the running process' JIT configuration.

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