Documentation

ChunkSerializer
in package

Table of Contents

LOWER_PADDING_SIZE  = 4
getSubChunkCount()  : int
Returns the number of subchunks that will be sent from the given chunk.
serializeFullChunk()  : string
serializeSubChunk()  : void
serializeTiles()  : string
__construct()  : mixed
serializeBiomesAsPalette()  : string

Constants

Methods

getSubChunkCount()

Returns the number of subchunks that will be sent from the given chunk.

public static getSubChunkCount(Chunk $chunk) : int

Chunks are sent in a stack, so every chunk below the top non-empty one must be sent.

Parameters
$chunk : Chunk
Return values
int

serializeSubChunk()

public static serializeSubChunk(SubChunk $subChunk, RuntimeBlockMapping $blockMapper, PacketSerializer $stream, bool $persistentBlockStates) : void
Parameters
$subChunk : SubChunk
$blockMapper : RuntimeBlockMapping
$stream : PacketSerializer
$persistentBlockStates : bool
Return values
void

serializeTiles()

public static serializeTiles(Chunk $chunk) : string
Parameters
$chunk : Chunk
Return values
string

serializeBiomesAsPalette()

private static serializeBiomesAsPalette(Chunk $chunk) : string
Parameters
$chunk : Chunk
Return values
string

Search results