Skip to content

FastChunkSerializer ​

final class · pocketmine\world\format\io\FastChunkSerializer · source

This class provides a serializer used for transmitting chunks between threads. The serialization format is not intended for permanent storage and may change without warning.

Methods ​

deserializeTerrain() ​

php
public static function deserializeTerrain(string $data) : \pocketmine\world\format\Chunk

Deserializes a fast-serialized chunk

serializeTerrain() ​

php
public static function serializeTerrain(\pocketmine\world\format\Chunk $chunk) : string

Fast-serializes the chunk for passing between threads TODO: tiles and entities

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