Rosegold::ChatManager
Inherits Reference / Object
Manages chat message signing, salt generation, and acknowledgment tracking according to the Minecraft 1.21.8 protocol requirements.
Constants
MAX_LAST_SEEN_MESSAGES = 20
SIGNATURE_SIZE = 256
Constructors
new(client : Client)
SourceInstance methods
add_last_seen_signature(signature : Bytes)
Add a received message signature to the last seen list
send_chat(message : String) : Bool
Send chat message or command, automatically determining the correct method based on the message content and protocol version
send_message(message : String) : Bool
Send a regular chat message with proper signing and acknowledgment