NativeTerrainClient 5.46.0
One connection to the vanillagen helper, bound to a seed (protocol: native/vanillagen/protocol.go). Not thread-safe: every generator instance (one per async worker) owns its own client.
Constants
FLAG_CARVERS
public const FLAG_CARVERS = 8Also run the carvers (needs FLAG_MATERIALS).
FLAG_DEEPSLATE_FLOATS
public const FLAG_DEEPSLATE_FLOATS = 2FLAG_MATERIALS
public const FLAG_MATERIALS = 4Also apply the material rules: chunks come back in the program's own material palette.
FLAG_NO_AQUIFERS
public const FLAG_NO_AQUIFERS = 1FLAG_PACKED_SECTIONS
public const FLAG_PACKED_SECTIONS = 16Chunks come with their subchunks already packed for PalettedBlockArray::fromData() (TerrainChunk::$sections) and the materials as a byte string (TerrainChunk::$materialBytes) instead of a PHP array: no per-block PHP loop.
MAX_FRAME
public const MAX_FRAME = 64 << 20Largest frame accepted (decoration requests carry a whole 3x3 chunk region).
Properties
$biomeNames
public readonly array $biomeNames$dataFingerprint
public readonly string $dataFingerprint$height
public readonly int $height$minY
public readonly int $minY$palette
public readonly array $paletteJava block ids of the material ids of chunks past the terrain stage (empty without FLAG_MATERIALS).
$version
public readonly string $versionMethods
__construct()
public function __construct(string $host, int $port, string $token, string $dataDir, int $seed, int $flags = 0, float $timeout = 60.0, string $settings = "overworld")__destruct()
public function __destruct()close()
public function close() : voidfill()
public function fill(int $chunkX, int $chunkZ, ?\pocketmine\world\generator\vanilla\structure\Beardifier $beardifier = null) : \pocketmine\world\generator\vanilla\TerrainChunkprocessCpuTime()
public function processCpuTime() : intCPU time used so far by the whole vanillagen process, in nanoseconds (benchmarks).
receive()
public function receive() : stringsend()
public function send(string $payload) : void