class

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)
Source

Class methods

enchantment_registry
Source
enchantment_registry=(enchantment_registry : Array(String))
Source
max_repair_cost
Source
max_repair_cost=(max_repair_cost : Int32)
Source

Instance methods

components_to_add
Source
components_to_add=(components_to_add : Hash(String, DataComponent))
Source
components_to_remove
Source
components_to_remove=(components_to_remove : Set(String))
Source
count
Source
count=(count : UInt32)
Source
damage
Source
decrement
Source
durability
Source
edible?
Source
efficiency
Source
empty?
Source
enchanted?
Source
enchantments
Source
full?
Source
item
Source
item_id_int
Source
item_id_int=(value : UInt32)
Source
make_empty
Source
matches?(item_id_int : UInt32)
Source
matches?(name : String)
Source
matches?(spec : Rosegold::Slot -> _)
Source
matches?
Source
max_durability
Source
max_stack_size
Source
name
Source
needs_repair?
Source
present?
Source
repair_cost
Source
swap_with(other)
Source
to_s(io)
Source
tool_component
Source
tool_speed_for_tag(tag : String) : Float32 | Nil

Get the mining speed from the tool component for a given block tag

Source
worth_repairing?
Source
write(io)
Source