module

Minecraft::IO

Constants

ABS_MAX_LP_VEC3 = 1.7179869183e10
ABS_MIN_LP_VEC3 = 3.051944088384301e-5

Instance methods

read_angle256_deg
Source
read_bit_location
Source
read_bool
Source
read_byte
Source
read_double
Source
read_float
Source
read_int
Source
read_long
Source
read_lp_vec3

Read LpVec3 (packed velocity format used in 1.21.11+) See decompiled net.minecraft.network.LpVec3 for reference

Source
read_nbt
Source
read_nbt_unamed
Source
read_opt_string
Source
read_short
Source
read_signed_byte
Source
read_text_component
Source
read_ushort
Source
read_uuid
Source
read_var_bytes
Source
read_var_int
Source
read_var_long
Source
read_var_string(size : UInt32) : String
Source
read_var_string
Source
write(x : Int32, y : Int32, z : Int32)
Source
write(value : Bool)
Source
write(str : String)
Source
write(value : Float32 | Float64 | UInt8 | Int8)
Source
write(uuid : UUID)
Source
write(value : UInt16 | Int16 | UInt32 | Int32 | UInt64 | Int64)

writes var int

Source
write(nbt : NBT::Tag)
Source
write(slot : Rosegold::Slot)
Source
write(text_component : Rosegold::TextComponent)
Source
write(angle : Minecraft::Angle)
Source
write(location : Rosegold::Vec3i)
Source
write_angle256_deg(deg : Float32 | Float64)
Source
write_full(value : UInt16 | Int16 | UInt32 | Int32 | UInt64 | Int64 | Float32 | Float64)

writes all bytes even for small magnitudes, not var int

Source
write_lp_vec3(vx : Float64, vy : Float64, vz : Float64)

Write LpVec3 (packed velocity format used in 1.21.11+)

Source
write_opt_string(str : String | Nil)
Source

Nested types