class
Rosegold::Slot
- Rosegold::Slot
- Reference
- Object
Direct Known Subclasses
Defined in:
rosegold/inventory/slot.crConstructors
Class Method Summary
Instance Method Summary
- #components_to_add : Hash(UInt32, DataComponent)
- #components_to_add=(components_to_add : Hash(UInt32, DataComponent))
- #components_to_remove : Set(UInt32)
- #components_to_remove=(components_to_remove : Set(UInt32))
- #count : UInt32
- #count=(count : UInt32)
- #damage
- #decrement
- #durability
- #edible? : Bool
- #efficiency
- #empty?
- #enchanted? : Bool
- #enchantments
- #full?
- #item : MCData::Item
- #item_id_int : UInt32
- #item_id_int=(value : UInt32)
- #make_empty
- #matches?(item_id_int : UInt32)
- #matches?(name : String)
- #matches?(spec : Rosegold::Slot -> _)
- #matches?(&)
- #max_durability
- #max_stack_size
- #name : String
- #needs_repair? : Bool
- #present?
- #repair_cost : Int32
- #swap_with(other)
- #to_s(io)
- #worth_repairing? : Bool
- #write(io)
Constructor Detail
def self.new(count : UInt32 = 0_u32, item_id_int : UInt32 = 0_u32, components_to_add : Hash(UInt32, Rosegold::DataComponent) = Hash(UInt32, DataComponent).new, components_to_remove : Set(UInt32) = Set(UInt32).new)
#