module

Rosegold::ItemConstants

Constants for Minecraft item IDs and game data Based on Minecraft 1.21.8 protocol via MCData

Class methods

armor?(item_id : Int32 | UInt32) : Bool
Source
boots?(item_id : Int32 | UInt32) : Bool
Source
chestplate?(item_id : Int32 | UInt32) : Bool
Source
get_equipment_slot_for_item(item_id : Int32 | UInt32) : Int32 | Nil
Source
helmet?(item_id : Int32 | UInt32) : Bool

Helper methods - accept both Int32 and UInt32 for compatibility

Source
lapis_lazuli?(item_id : Int32 | UInt32) : Bool
Source
leggings?(item_id : Int32 | UInt32) : Bool
Source
offhand_item?(item_id : Int32 | UInt32) : Bool
Source