PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
Static Public Member Functions | |
static | getDimensionChunkBounds (int $dimensionId) |
static | getSubChunkCount (Chunk $chunk, int $dimensionId) |
static | serializeFullChunk (Chunk $chunk, int $dimensionId, BlockTranslator $blockTranslator, ?string $tiles=null) |
static | serializeSubChunk (SubChunk $subChunk, BlockTranslator $blockTranslator, PacketSerializer $stream, bool $persistentBlockStates) |
static | serializeTiles (Chunk $chunk) |
Definition at line 41 of file ChunkSerializer.php.
|
static |
Returns the min/max subchunk index expected in the protocol. This has no relation to the world height supported by PM.
@phpstan-param DimensionIds::* $dimensionId
Definition at line 54 of file ChunkSerializer.php.
|
static |
Returns the number of subchunks that will be sent from the given chunk. Chunks are sent in a stack, so every chunk below the top non-empty one must be sent.
@phpstan-param DimensionIds::* $dimensionId
Definition at line 69 of file ChunkSerializer.php.
|
static |
@phpstan-param DimensionIds::* $dimensionId
Definition at line 86 of file ChunkSerializer.php.
|
static |
Definition at line 114 of file ChunkSerializer.php.
|
static |
Definition at line 176 of file ChunkSerializer.php.