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 = "")
Sourceread(io) : PotionContents
SourceInstance methods
custom_color
Sourcecustom_color=(custom_color : UInt32 | Nil)
Sourcecustom_effects
Sourcecustom_effects=(custom_effects : Array(PotionEffect))
Sourcecustom_name
Sourcecustom_name=(custom_name : String)
Sourcehas_custom_color=(has_custom_color : Bool)
Sourcehas_custom_color?
Sourcehas_potion_id=(has_potion_id : Bool)
Sourcehas_potion_id?
Sourcepotion_id
Sourcepotion_id=(potion_id : UInt32 | Nil)
Sourcewrite(io) : Nil
Source