struct

PacketBuffer

Inherits Struct < Value < Object

Constructors

new(data : Bytes = Bytes.new(0))
Source

Class methods

var_int_size(value : Int32) : Int32
Source

Instance methods

data
Source
offset
Source
read_angle
Source
read_att_property
Source
read_att_property_array(length : Int32) : Array(Attribute::Property)
Source
read_block_record
Source
read_block_record_array(length : Int32) : Array(BlockRecord)
Source
read_boolean
Source
read_byte_array(length : Int32) : Bytes
Source
read_chunk(primary_bit_mask : UInt16, size_or_sky_light : Int32 | Bool) : Chunk::Column
Source
read_chunk_array_from_meta(meta : Array(Chunk::Meta), sky_light_sent : Bool) : Array(Chunk::Column)
Source
read_chunk_meta
Source
read_chunk_meta_array(length : Int32) : Array(Chunk::Meta)
Source
read_double
Source
read_explosion_record
Source
read_explosion_record_array(length : Int32) : Array(ExplosionRecord)
Source
read_float
Source
read_int
Source
read_long
Source
read_map_icon
Source
read_map_icon_array(length : Int32) : Array(MapIcon)
Source
read_metadata
Source
read_modifier
Source
read_modifier_array(length : Int32) : Array(Attribute::Modifier)
Source
read_nbt(type : Int8 | Nil = nil) : Nbt::Value | Nil
Source
read_pl_property_array(length : Int32) : Array(PlayerList::Property)
Source
read_player(action : Int32) : PlayerList::Value
Source
read_player_array(length : Int32, action) : Array(PlayerList::Value)
Source
read_position
Source
read_remaining_bytes
Source
read_short
Source
read_signed_byte
Source
read_slot
Source
read_slot_array(length : Int32) : Array(Slot)
Source
read_statistic
Source
read_statistic_array(length : Int32) : Array(Statistic)
Source
read_string
Source
read_string_array(length : Int32) : Array(String)
Source
read_title_action(action : Int32) : Title::Action
Source
read_unsigned_byte
Source
read_unsigned_byte_array(length : Int32) : Array(UInt8)
Source
read_unsigned_short
Source
read_unsigned_short_array(length : Int32) : Array(UInt16)
Source
read_uuid
Source
read_var_int
Source
read_var_int_array(length : Int32) : Array(Int32)
Source
read_var_long
Source
read_wb_action(action : Int32) : WorldBorder::Action
Source
write_angle(angle : Angle)
Source
write_att_property(property : Attribute::Property)
Source
write_att_property_array(array : Array(Attribute::Property), *_args)
Source
write_block_record(record : BlockRecord)
Source
write_block_record_array(array : Array(BlockRecord), *_args)
Source
write_boolean(boolean : Bool)
Source
write_byte_array(array : Bytes, *_args)
Source
write_chunk(column : Chunk::Column, sky_light_sent : Bool, primary_bit_mask : UInt16)
Source
write_chunk_array_from_meta(columns : Array(Chunk::Column), sky_light_sent : Bool, meta : Array(Chunk::Meta))
Source
write_chunk_meta(meta : Chunk::Meta)
Source
write_chunk_meta_array(array : Array(Chunk::Meta), *_args)
Source
write_double(double : Float64)
Source
write_explosion_record(record : ExplosionRecord)
Source
write_explosion_record_array(array : Array(ExplosionRecord), *_args)
Source
write_float(float : Float32)
Source
write_int(int : Int32)
Source
write_long(long : Int64)
Source
write_map_icon(icon : MapIcon)
Source
write_map_icon_array(array : Array(MapIcon), *_args)
Source
write_metadata(metadata : Metadata::Data)
Source
write_modifier(modifier : Attribute::Modifier)
Source
write_modifier_array(array : Array(Attribute::Modifier), *_args)
Source
write_nbt(nbt : Nbt::Value | Nil)
Source
write_pl_property_array(array : Array(PlayerList::Property), *_args)
Source
write_player(player : PlayerList::Value, action : Int32)
Source
write_player_array(array : Array(PlayerList::Value), action, *_args)
Source
write_position(position : Position)
Source
write_short(short : Int16)
Source
write_signed_byte(byte : Int8)
Source
write_slot(slot : Slot)
Source
write_slot_array(array : Array(Slot), *_args)
Source
write_statistic(statistic : Statistic)
Source
write_statistic_array(array : Array(Statistic), *_args)
Source
write_string(string : String)
Source
write_string_array(array : Array(String), *_args)
Source
write_unsigned_byte(byte : UInt8)
Source
write_unsigned_byte_array(array : Array(UInt8), *_args)
Source
write_unsigned_short(short : UInt16)
Source
write_unsigned_short_array(array : Array(UInt16), *_args)
Source
write_uuid(uuid : UUID)
Source
write_var_int(value : Int32)
Source
write_var_int_array(array : Array(Int32), *_args)
Source
write_var_long(value : Int64)
Source
write_wb_action(action : WorldBorder::Action, action_id : Int32)
Source