struct Woozy::ServerChunkPacket

Defined in:

packets.cr

Constant Summary

Id = 11_u8

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from struct Woozy::Packet

initialize initialize, size : Int32 size, to_slice : Bytes to_slice, write(bytes : Bytes) write

Constructor methods inherited from struct Woozy::Packet

new new

Class methods inherited from struct Woozy::Packet

from_id(id : UInt8, bytes : Bytes) : Packet | Nil from_id, header_from_bytes(bytes : Bytes) : Tuple(UInt8, Int32) header_from_bytes

Constructor Detail

def self.new(x : Int32, y : Int32, z : Int32, block_palette : Hash(UInt16, String), block_ids : Array(UInt16)) #

[View source]

Class Method Detail

def self.id : UInt8 #

[View source]
def self.read(bytes : Bytes) : self | Nil #

[View source]

Instance Method Detail

def block_ids : Array(UInt16) #

def block_palette : Hash(UInt16, String) #

def size : Int32 #

[View source]
def write(bytes : Bytes) #

[View source]
def x : Int32 #

def y : Int32 #

def z : Int32 #