struct

Rosegold::DataComponents::AttributeModifiers::AttributeModifier

Inherits Struct / Value / Object

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

Constructors

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

Instance methods

attribute_id
Source
attribute_id=(attribute_id : UInt32)
Source
display
Source
display=(display : UInt32)
Source
display_override
Source
display_override=(display_override : Rosegold::TextComponent | Nil)
Source
modifier_id
Source
modifier_id=(modifier_id : String)
Source
operation
Source
operation=(operation : UInt32)
Source
slot
Source
slot=(slot : UInt32)
Source
value
Source
value=(value : Float64)
Source