class Rosegold::WindowSlot

Defined in:

rosegold/inventory/slot.cr

Constructors

Instance Method Summary

Instance methods inherited from class Rosegold::Slot

components_to_add : Hash(UInt32, DataComponent) components_to_add, components_to_add=(components_to_add : Hash(UInt32, DataComponent)) components_to_add=, components_to_remove : Set(UInt32) components_to_remove, components_to_remove=(components_to_remove : Set(UInt32)) components_to_remove=, count : UInt32 count, count=(count : UInt32) count=, damage damage, decrement decrement, durability durability, edible? : Bool edible?, efficiency efficiency, empty? empty?, enchanted? : Bool enchanted?, enchantments enchantments, full? full?, item : MCData::Item item, item_id_int : UInt32 item_id_int, item_id_int=(value : UInt32) item_id_int=, make_empty make_empty, matches?(item_id_int : UInt32)
matches?(name : String)
matches?(spec : Rosegold::Slot -> _)
matches?(&)
matches?
, max_durability max_durability, max_stack_size max_stack_size, name : String name, needs_repair? : Bool needs_repair?, present? present?, repair_cost : Int32 repair_cost, swap_with(other) swap_with, to_s(io) to_s, worth_repairing? : Bool worth_repairing?, write(io) write

Constructor methods inherited from class Rosegold::Slot

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

Class methods inherited from class Rosegold::Slot

read(io) : Rosegold::Slot read

Constructor Detail

def self.new(slot_number : Int32, slot) #

[View source]

Instance Method Detail

def ==(other : Rosegold::WindowSlot) #

[View source]
def slot_number : Int32 #

[View source]
def slot_number=(slot_number : Int32) #

[View source]