class Rosegold::Slot
- Rosegold::Slot
- Reference
- Object
Direct Known Subclasses
Defined in:
rosegold/world/slot.crConstructors
Class Method Summary
Instance Method Summary
- #count : UInt8
- #count=(count : UInt8)
- #damage
- #decrement
- #durability
- #edible? : Bool
- #efficiency
- #empty?
- #enchanted? : Bool
- #enchantments
- #full?
-
#item_id : String
Use to get the item_id in new-age string format To get the legacy int format, use
#item_id_int
- #item_id_int : UInt32
- #item_id_int=(item_id_int : UInt32)
- #make_empty
- #matches?(item_id_int : UInt32)
- #matches?(item_id : String)
- #matches?(spec : Rosegold::WindowSlot -> _)
- #matches?(&)
- #max_durability
- #max_stack_size
- #nbt : Minecraft::NBT::CompoundTag | Nil
- #nbt=(nbt : Minecraft::NBT::CompoundTag | Nil)
- #needs_repair? : Bool
- #present?
- #repair_cost : Int32
- #swap_with(other)
- #to_s(io)
- #worth_repairing? : Bool
- #write(io)
Constructor Detail
def self.new(item_id_int : UInt32 = 0, count : UInt8 = 0, nbt : Nil | Minecraft::NBT::CompoundTag = nil)
#
Class Method Detail
Instance Method Detail
def item_id : String
#
Use to get the item_id in new-age string format
To get the legacy int format, use #item_id_int