class Rosegold::DataComponents::CustomData

Overview

Component for custom data (NBT compound)

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

Constructor Detail

def self.new(data : Minecraft::NBT::Tag) #

[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 write(io) : Nil #

[View source]