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)
SourceClass methods
decode_varint(bytes : Bytes) : UInt32 | Nil
SourceInstance methods
client
Sourceclient_ready?
Sourceclose
Sourceconnected=(connected : Bool)
Sourceconnected?
Sourcehandle_client
Sourcekeep_alive_id
Sourcekeep_alive_id=(keep_alive_id : Int64)
Sourcelast_dig_progress
Sourcelast_dig_progress=(last_dig_progress : Float32)
Sourcelast_digging_block
Sourcelast_digging_block=(last_digging_block : Vec3i | Nil)
Sourceloaded_chunks
Sourceprotocol_state
Sourceprotocol_state=(protocol_state : ProtocolState)
Sourceprotocol_version
Sourcesend_packet(packet : Rosegold::Clientbound::Packet)
Sourcesocket
Sourcesocket=(socket : Minecraft::IO::Wrap)
Sourcespectate_server
Sourcespectate_server=(spectate_server : Server)
Sourcespectate_state
Sourcespectate_state=(spectate_state : State)
Sourceteleport_id
Sourceteleport_id=(teleport_id : UInt32)
Sourceusername
Sourceusername=(username : String)
Sourceuuid
Sourceuuid=(uuid : UUID)
Source