module
Rosegold::ItemConstants
Overview
Constants for Minecraft item IDs and game data Based on Minecraft 1.21.8 protocol via MCData
Defined in:
rosegold/inventory/item_constants.crClass Method Summary
- .armor?(item_id : Int32 | UInt32) : Bool
- .boots?(item_id : Int32 | UInt32) : Bool
- .chestplate?(item_id : Int32 | UInt32) : Bool
- .expected_container_size(type_id : UInt32) : Int32 | Nil
- .get_equipment_slot_for_item(item_id : Int32 | UInt32) : Int32 | Nil
-
.helmet?(item_id : Int32 | UInt32) : Bool
Helper methods - accept both Int32 and UInt32 for compatibility
- .leggings?(item_id : Int32 | UInt32) : Bool
- .offhand_item?(item_id : Int32 | UInt32) : Bool
Class Method Detail
Helper methods - accept both Int32 and UInt32 for compatibility