class

Rosegold::Spectate::Connection

Inherits Rosegold::Spectate::Lobby / Rosegold::Spectate::PacketRelay / Rosegold::Spectate::Monitoring / Rosegold::Spectate::PlaySession / Rosegold::Spectate::WorldSync / Rosegold::Spectate::Configuration / Rosegold::Spectate::Handshake / Reference / Object

Constants

COMMAND_SUGGESTION_MAP_LIMIT = 256
Log = ::Log.for(self)
PROTOCOL_VERSION_NAMES = {772_u32 => "1.21.8", 774_u32 => "1.21.11", 775_u32 => "26.1"}

Constructors

new(raw_socket : TCPSocket, spectate_server : Server)
Source

Class methods

decode_varint(bytes : Bytes) : UInt32 | Nil
Source

Instance methods

client
Source
client=(client : Rosegold::Client | Nil)
Source
client_ready?
Source
close
Source
connected=(connected : Bool)
Source
connected?
Source
handle_client
Source
keep_alive_id
Source
keep_alive_id=(keep_alive_id : Int64)
Source
last_dig_progress
Source
last_dig_progress=(last_dig_progress : Float32)
Source
last_digging_block
Source
last_digging_block=(last_digging_block : Vec3i | Nil)
Source
loaded_chunks
Source
loaded_chunks=(loaded_chunks : Set(Tuple(Int32, Int32)))
Source
protocol_state
Source
protocol_state=(protocol_state : ProtocolState)
Source
protocol_version
Source
socket
Source
socket=(socket : Minecraft::IO::Wrap)
Source
spectate_server
Source
spectate_server=(spectate_server : Server)
Source
spectate_state
Source
spectate_state=(spectate_state : State)
Source
teleport_id
Source
teleport_id=(teleport_id : UInt32)
Source
username
Source
username=(username : String)
Source
uuid
Source
uuid=(uuid : UUID)
Source