class

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)
Source

Instance methods

block_states
Source
codec
Source
codec=(codec : Codec)
Source
codec?
Source
entities
Source
inspect(io : IO) : Nil

Appends 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>
Source
io=(io : IO | Nil)
Source
matching_cb(i : UInt32) : Packet::Cb::Login | Packet::Cb::Play | Packet::Cb::Status
Source
minecraft_token
Source
outbound
Source
packet(packet_id : Packet::Sb::Play | Packet::Sb::Status | Packet::Sb::Login | Packet::Sb::Handshake, &block : IO -> )
Source
packet_callback
Source
ping
Source
players
Source
port
Source
profile
Source
protocol
Source
registry
Source
sock
Source
sock=(sock : TCPSocket | Nil)
Source
start_outbound_handler
Source
state
Source
transition(s : Packet::State)
Source
use_crypto_io(io : Crypto::CipherStreamIO)
Source
using_compression
Source
using_compression=(using_compression : UInt32)
Source
using_crypto
Source
using_crypto=(using_crypto : Bool)
Source

Nested types