struct Rosegold::DataComponents::AttributeModifiers::AttributeModifier

Overview

Display = {type: VarInt, body: depends on type} 0 = DEFAULT (no body), 1 = HIDDEN (no body), 2 = OVERRIDE (Text Component body)

Defined in:

rosegold/inventory/slot.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(attribute_id : UInt32, modifier_id : String, value : Float64, operation : UInt32, slot : UInt32, display : UInt32 = 0_u32, display_override : Rosegold::TextComponent | Nil = nil) #

[View source]

Instance Method Detail

def attribute_id : UInt32 #

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

[View source]
def display : UInt32 #

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

[View source]
def display_override : Rosegold::TextComponent | Nil #

[View source]
def display_override=(display_override : Rosegold::TextComponent | Nil) #

[View source]
def modifier_id : String #

[View source]
def modifier_id=(modifier_id : String) #

[View source]
def operation : UInt32 #

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

[View source]
def slot : UInt32 #

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

[View source]
def value : Float64 #

[View source]
def value=(value : Float64) #

[View source]