Chat Messages

Minecraft chat is implemented in the Message class.

class quarry.types.chat.Message(value)[source]

Represents a Minecraft chat message.

classmethod from_buff(buff)[source]
to_bytes()[source]
classmethod from_string(string)[source]
to_string(strip_styles=True)[source]

Minecraft uses a JSON format to represent chat messages; this method retrieves a plaintext representation, optionally including styles encoded using old-school chat codes (U+00A7 plus one character).

classmethod strip_chat_styles(text)[source]