Rosegold::Slot
Inherits Reference / Object
Constructors
new(count : UInt32 = 0_u32, item_id_int : UInt32 = 0_u32, components_to_add : Hash(String, Rosegold::DataComponent) = Hash(String, DataComponent).new, components_to_remove : Set(String) = Set(String).new)
SourceClass methods
enchantment_registry
Sourceenchantment_registry=(enchantment_registry : Array(String))
Sourcemax_repair_cost
Sourceread(io) : Rosegold::Slot
SourceInstance methods
components_to_add
Sourcecomponents_to_add=(components_to_add : Hash(String, DataComponent))
Sourcecomponents_to_remove
Sourcecomponents_to_remove=(components_to_remove : Set(String))
Sourcecount
Sourcecount=(count : UInt32)
Sourcedamage
Sourcedecrement
Sourcedurability
Sourceedible?
Sourceefficiency
Sourceempty?
Sourceenchanted?
Sourceenchantments
Sourcefull?
Sourceitem
Sourceitem_id_int
Sourceitem_id_int=(value : UInt32)
Sourcemake_empty
Sourcematches?(item_id_int : UInt32)
Sourcematches?(name : String)
Sourcematches?(spec : Rosegold::Slot -> _)
Sourcematches?
Sourcemax_durability
Sourcemax_stack_size
Sourcename
Sourceneeds_repair?
Sourcepresent?
Sourcerepair_cost
Sourceswap_with(other)
Sourceto_s(io)
Sourcetool_component
Sourcetool_speed_for_tag(tag : String) : Float32 | Nil
Get the mining speed from the tool component for a given block tag
worth_repairing?
Sourcewrite(io)
Source