struct PacketBuffer
- PacketBuffer
- Struct
- Value
- Object
Defined in:
buffer/buffer.crConstructors
Class Method Summary
Instance Method Summary
- #data : Bytes
- #offset : Int32
- #read_angle : Angle
- #read_att_property : Attribute::Property
- #read_att_property_array(length : Int32) : Array(Attribute::Property)
- #read_block_record : BlockRecord
- #read_block_record_array(length : Int32) : Array(BlockRecord)
- #read_boolean : Bool
- #read_byte_array(length : Int32) : Bytes
- #read_chunk(primary_bit_mask : UInt16, size_or_sky_light : Int32 | Bool) : Chunk::Column
- #read_chunk_array_from_meta(meta : Array(Chunk::Meta), sky_light_sent : Bool) : Array(Chunk::Column)
- #read_chunk_meta : Chunk::Meta
- #read_chunk_meta_array(length : Int32) : Array(Chunk::Meta)
- #read_double : Float64
- #read_explosion_record : ExplosionRecord
- #read_explosion_record_array(length : Int32) : Array(ExplosionRecord)
- #read_float : Float32
- #read_int : Int32
- #read_long : Int64
- #read_map_icon : MapIcon
- #read_map_icon_array(length : Int32) : Array(MapIcon)
- #read_metadata : Metadata::Data
- #read_modifier : Attribute::Modifier
- #read_modifier_array(length : Int32) : Array(Attribute::Modifier)
- #read_nbt(type : Int8 | Nil = nil) : Nbt::Value | Nil
- #read_pl_property_array(length : Int32) : Array(PlayerList::Property)
- #read_player(action : Int32) : PlayerList::Value
- #read_player_array(length : Int32, action) : Array(PlayerList::Value)
- #read_position : Position
- #read_remaining_bytes : Bytes
- #read_short : Int16
- #read_signed_byte : Int8
- #read_slot : Slot
- #read_slot_array(length : Int32) : Array(Slot)
- #read_statistic : Statistic
- #read_statistic_array(length : Int32) : Array(Statistic)
- #read_string : String
- #read_string_array(length : Int32) : Array(String)
- #read_title_action(action : Int32) : Title::Action
- #read_unsigned_byte : UInt8
- #read_unsigned_byte_array(length : Int32) : Array(UInt8)
- #read_unsigned_short : UInt16
- #read_unsigned_short_array(length : Int32) : Array(UInt16)
- #read_uuid : UUID
- #read_var_int : Int32
- #read_var_int_array(length : Int32) : Array(Int32)
- #read_var_long : Int64
- #read_wb_action(action : Int32) : WorldBorder::Action
- #write_angle(angle : Angle)
- #write_att_property(property : Attribute::Property)
- #write_att_property_array(array : Array(Attribute::Property), *_args)
- #write_block_record_array(array : Array(BlockRecord), *_args)
- #write_boolean(boolean : Bool)
- #write_byte_array(array : Bytes, *_args)
- #write_chunk_meta_array(array : Array(Chunk::Meta), *_args)
- #write_double(double : Float64)
- #write_explosion_record_array(array : Array(ExplosionRecord), *_args)
- #write_float(float : Float32)
- #write_int(int : Int32)
- #write_long(long : Int64)
- #write_map_icon_array(array : Array(MapIcon), *_args)
- #write_modifier(modifier : Attribute::Modifier)
- #write_modifier_array(array : Array(Attribute::Modifier), *_args)
- #write_pl_property_array(array : Array(PlayerList::Property), *_args)
- #write_player_array(array : Array(PlayerList::Value), action, *_args)
- #write_position(position : Position)
- #write_short(short : Int16)
- #write_signed_byte(byte : Int8)
- #write_slot_array(array : Array(Slot), *_args)
- #write_statistic_array(array : Array(Statistic), *_args)
- #write_string(string : String)
- #write_string_array(array : Array(String), *_args)
- #write_unsigned_byte(byte : UInt8)
- #write_unsigned_byte_array(array : Array(UInt8), *_args)
- #write_unsigned_short(short : UInt16)
- #write_unsigned_short_array(array : Array(UInt16), *_args)
- #write_uuid(uuid : UUID)
- #write_var_int(value : Int32)
- #write_var_int_array(array : Array(Int32), *_args)
- #write_var_long(value : Int64)
Constructor Detail
Class Method Detail
Instance Method Detail
def read_chunk(primary_bit_mask : UInt16, size_or_sky_light : Int32 | Bool) : Chunk::Column
#
def read_chunk_array_from_meta(meta : Array(Chunk::Meta), sky_light_sent : Bool) : Array(Chunk::Column)
#