struct Rosegold::DataComponents::BlocksAttacks::DamageTypeHolderSet

Overview

Optional HolderSet: bool has_type + (VarInt set_type + body). set_type == 0 ⇒ tag name (Identifier string). set_type >= 1 ⇒ (set_type - 1) inline VarInt ids.

Defined in:

rosegold/inventory/slot.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(set_type : UInt32 = 0_u32, tag : Nil | String = nil, ids : Array(UInt32) = [] of UInt32) #

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

[View source]

Instance Method Detail

def ids : Array(UInt32) #

[View source]
def ids=(ids : Array(UInt32)) #

[View source]
def set_type : UInt32 #

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

[View source]
def tag : String | Nil #

[View source]
def tag=(tag : String | Nil) #

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

[View source]