class Rosegold::Spectate::Connection

Included Modules

Defined in:

rosegold/spectate/connection.cr

Constant Summary

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(raw_socket : TCPSocket, spectate_server : Server) #

[View source]

Class Method Detail

def self.decode_varint(bytes : Bytes) : UInt32 | Nil #

[View source]

Instance Method Detail

def client : Rosegold::Client | Nil #

[View source]
def client=(client : Rosegold::Client | Nil) #

[View source]
def client_ready? #

[View source]
def close #

[View source]
def connected=(connected : Bool) #

[View source]
def connected? : Bool #

[View source]
def handle_client #

[View source]
def keep_alive_id : Int64 #

[View source]
def keep_alive_id=(keep_alive_id : Int64) #

[View source]
def last_dig_progress : Float32 #

[View source]
def last_dig_progress=(last_dig_progress : Float32) #

[View source]
def last_digging_block : Vec3i | Nil #

[View source]
def last_digging_block=(last_digging_block : Vec3i | Nil) #

[View source]
def loaded_chunks : Set(Tuple(Int32, Int32)) #

[View source]
def loaded_chunks=(loaded_chunks : Set(Tuple(Int32, Int32))) #

[View source]
def protocol_state : ProtocolState #

[View source]
def protocol_state=(protocol_state : ProtocolState) #

[View source]
def protocol_version : UInt32 #

[View source]
def send_packet(packet : Rosegold::Clientbound::Packet) #

[View source]
def socket : Minecraft::IO::Wrap #

[View source]
def socket=(socket : Minecraft::IO::Wrap) #

[View source]
def spectate_server : Server #

[View source]
def spectate_server=(spectate_server : Server) #

[View source]
def spectate_state : State #

[View source]
def spectate_state=(spectate_state : State) #

[View source]
def teleport_id : UInt32 #

[View source]
def teleport_id=(teleport_id : UInt32) #

[View source]
def username : String #

[View source]
def username=(username : String) #

[View source]
def uuid : UUID #

[View source]
def uuid=(uuid : UUID) #

[View source]