minecraft/protocol package provides low-level types and serialization methods for reading and writing Minecraft Bedrock Edition protocol data.
Reader
TheReader type reads protocol data types from a byte stream.
NewReader
Methods
The Reader provides methods for reading various data types:Writer
TheWriter type writes protocol data types to a byte stream.
NewWriter
Methods
The Writer provides methods for writing various data types:Common Types
BlockPos
ChunkPos
SubChunkPos
ItemStack
ItemInstance
Protocol Constants
Protocol Versions
Device Types
IO Interface
TheIO interface combines Reader and Writer methods: