class Rosegold::DataComponents::TypedEntityData

Overview

TypedEntityData (1.21.11) - VarInt type ID + CompoundTag

Defined in:

rosegold/inventory/slot.cr

Constructors

Instance Method Summary

Instance methods inherited from class Rosegold::DataComponent

write(io) : Nil write

Constructor methods inherited from class Rosegold::DataComponent

create_component(component_type : UInt32, io) : DataComponent create_component, create_component_by_name(name : String | Nil, component_type : UInt32, io) : DataComponent create_component_by_name

Constructor Detail

def self.new(type_id : UInt32 = 0_u32, data : Minecraft::NBT::Tag = Minecraft::NBT::CompoundTag.new) #

[View source]
def self.read(io) : self #

[View source]

Instance Method Detail

def data : Minecraft::NBT::Tag #

[View source]
def data=(data : Minecraft::NBT::Tag) #

[View source]
def type_id : UInt32 #

[View source]
def type_id=(type_id : UInt32) #

[View source]
def write(io) : Nil #

[View source]