class
Rosegold::DataComponents::PotionContents
Overview
Component for potion contents (visual and effects of a potion item)
Defined in:
rosegold/inventory/slot.crConstructors
- .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 = "")
- .read(io) : PotionContents
Instance Method Summary
- #custom_color : UInt32 | Nil
- #custom_color=(custom_color : UInt32 | Nil)
- #custom_effects : Array(PotionEffect)
- #custom_effects=(custom_effects : Array(PotionEffect))
- #custom_name : String
- #custom_name=(custom_name : String)
- #has_custom_color : Bool
- #has_custom_color=(has_custom_color : Bool)
- #has_potion_id : Bool
- #has_potion_id=(has_potion_id : Bool)
- #potion_id : UInt32 | Nil
- #potion_id=(potion_id : UInt32 | Nil)
- #write(io) : Nil
Instance methods inherited from class Rosegold::DataComponent
write(io) : Nil
write
Constructor methods inherited from class Rosegold::DataComponent
create_component(component_type : UInt32, io) : DataComponent
create_component
Constructor Detail
def self.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 = "")
#