Shatter::Connection
Inherits Reference < Object
Constructors
new(protocol : UInt32, ip : String, port : Int32, registry : Shatter::Registry, block_states : Array(String), minecraft_token : String, profile : Shatter::MSA::MinecraftProfile, packet_callback : Nil | Shatter::Packet::Handler, Shatter::Connection -> _ = nil)
SourceInstance methods
block_states
Sourcecodec
Sourcecodec=(codec : Codec)
Sourcecodec?
Sourceentities
SourceAppends a String representation of this object which includes its class name, its object address and the values of all instance variables.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>
io
Sourceip
Sourcematching_cb(i : UInt32) : Packet::Cb::Login | Packet::Cb::Play | Packet::Cb::Status
Sourceminecraft_token
Sourceoutbound
Sourcepacket(packet_id : Packet::Sb::Play | Packet::Sb::Status | Packet::Sb::Login | Packet::Sb::Handshake, &block : IO -> )
Sourcepacket_callback
Sourceping
Sourceplayers
Sourceport
Sourceprofile
Sourceprotocol
Sourceregistry
Sourcerun
Sourcesock
Sourcesock=(sock : TCPSocket | Nil)
Sourcestart_outbound_handler
Sourcestate
Sourcetransition(s : Packet::State)
Sourceuse_crypto_io(io : Crypto::CipherStreamIO)
Sourceusing_compression
Sourceusing_compression=(using_compression : UInt32)
Sourceusing_crypto
Sourceusing_crypto=(using_crypto : Bool)
Source