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.cr

Class Method Summary

Class Method Detail

def self.armor?(item_id : Int32 | UInt32) : Bool #

[View source]
def self.boots?(item_id : Int32 | UInt32) : Bool #

[View source]
def self.chestplate?(item_id : Int32 | UInt32) : Bool #

[View source]
def self.expected_container_size(type_id : UInt32) : Int32 | Nil #

[View source]
def self.get_equipment_slot_for_item(item_id : Int32 | UInt32) : Int32 | Nil #

[View source]
def self.helmet?(item_id : Int32 | UInt32) : Bool #

Helper methods - accept both Int32 and UInt32 for compatibility


[View source]
def self.leggings?(item_id : Int32 | UInt32) : Bool #

[View source]
def self.offhand_item?(item_id : Int32 | UInt32) : Bool #

[View source]