class

Rosegold::DataComponents::PotionContents

Inherits Rosegold::DataComponent / Reference / Object

Component for potion contents (visual and effects of a potion item)

Constructors

new(has_potion_id : Bool = false, potion_id : UInt32 | Nil = nil, has_custom_color : Bool = false, custom_color : UInt32 | Nil = nil, custom_effects : Array(Rosegold::DataComponents::PotionContents::PotionEffect) = [] of PotionEffect, custom_name : String = "")
Source
read(io) : PotionContents
Source

Instance methods

custom_color
Source
custom_color=(custom_color : UInt32 | Nil)
Source
custom_effects
Source
custom_effects=(custom_effects : Array(PotionEffect))
Source
custom_name
Source
custom_name=(custom_name : String)
Source
has_custom_color=(has_custom_color : Bool)
Source
has_custom_color?
Source
has_potion_id=(has_potion_id : Bool)
Source
has_potion_id?
Source
potion_id
Source
potion_id=(potion_id : UInt32 | Nil)
Source
write(io) : Nil
Source

Nested types