Skip to main content

Module types

Module types 

Source
Expand description

Common types used across the Minecraft protocol.

Structs§

GameProfile
A player’s game profile, as returned by the Mojang session server.
ProfileProperty
A single property in a game profile.

Enums§

ProtocolError
Errors that can occur during protocol operations.

Functions§

read_properties
Read a game profile’s properties array from the Minecraft protocol format.
read_string
Read a Minecraft protocol string (VarInt-prefixed UTF-8).
read_string_max
Read a Minecraft protocol string with a custom maximum length.
read_uuid
Read a UUID as two big-endian i64 values (Minecraft format).
undashed_uuid
Format a UUID without dashes (Minecraft’s “undashed” format).
write_nbt_text_component
Write a Minecraft text component encoded as network NBT.
write_properties
Write a game profile’s properties array in the Minecraft protocol format.
write_string
Write a Minecraft protocol string (VarInt-prefixed UTF-8).
write_uuid
Write a UUID as two big-endian i64 values (Minecraft format).