module Rosegold::DataComponentTypes

Overview

Version-specific component ID → name mappings

Defined in:

rosegold/inventory/slot.cr

Constant Summary

PROTOCOL_772 = {0_u32 => "custom_data", 1_u32 => "max_stack_size", 2_u32 => "max_damage", 3_u32 => "damage", 4_u32 => "unbreakable", 5_u32 => "custom_name", 6_u32 => "item_name", 7_u32 => "item_model", 8_u32 => "lore", 9_u32 => "rarity", 10_u32 => "enchantments", 11_u32 => "can_place_on", 12_u32 => "can_break", 13_u32 => "attribute_modifiers", 14_u32 => "custom_model_data", 15_u32 => "tooltip_display", 16_u32 => "repair_cost", 17_u32 => "creative_slot_lock", 18_u32 => "enchantment_glint_override", 19_u32 => "intangible_projectile", 20_u32 => "food", 21_u32 => "consumable", 22_u32 => "use_remainder", 23_u32 => "use_cooldown", 24_u32 => "damage_resistant", 25_u32 => "tool", 26_u32 => "weapon", 27_u32 => "enchantable", 28_u32 => "equippable", 29_u32 => "repairable", 30_u32 => "glider", 31_u32 => "tooltip_style", 32_u32 => "death_protection", 33_u32 => "blocks_attacks", 34_u32 => "stored_enchantments", 35_u32 => "dyed_color", 36_u32 => "map_color", 37_u32 => "map_id", 38_u32 => "map_decorations", 39_u32 => "map_post_processing", 40_u32 => "potion_duration_scale", 41_u32 => "charged_projectiles", 42_u32 => "bundle_contents", 43_u32 => "potion_contents", 44_u32 => "suspicious_stew_effects", 45_u32 => "writable_book_content", 46_u32 => "written_book_content", 47_u32 => "trim", 48_u32 => "debug_stick_state", 49_u32 => "entity_data", 50_u32 => "bucket_entity_data", 51_u32 => "block_entity_data", 52_u32 => "instrument", 53_u32 => "provides_trim_material", 54_u32 => "ominous_bottle_amplifier", 55_u32 => "jukebox_playable", 56_u32 => "provides_banner_patterns", 57_u32 => "recipes", 58_u32 => "lodestone_tracker", 59_u32 => "firework_explosion", 60_u32 => "fireworks", 61_u32 => "profile", 62_u32 => "note_block_sound", 63_u32 => "banner_patterns", 64_u32 => "base_color", 65_u32 => "pot_decorations", 66_u32 => "container", 67_u32 => "block_state", 68_u32 => "bees", 69_u32 => "lock", 70_u32 => "container_loot", 71_u32 => "break_sound", 72_u32 => "villager/variant", 73_u32 => "wolf/variant", 74_u32 => "wolf/sound_variant", 75_u32 => "wolf/collar", 76_u32 => "fox/variant", 77_u32 => "salmon/size", 78_u32 => "parrot/variant", 79_u32 => "tropical_fish/pattern", 80_u32 => "tropical_fish/base_color", 81_u32 => "tropical_fish/pattern_color", 82_u32 => "mooshroom/variant", 83_u32 => "rabbit/variant", 84_u32 => "pig/variant", 85_u32 => "cow/variant", 86_u32 => "chicken/variant", 87_u32 => "frog/variant", 88_u32 => "horse/variant", 89_u32 => "painting/variant", 90_u32 => "llama/variant", 91_u32 => "axolotl/variant", 92_u32 => "cat/variant", 93_u32 => "cat/collar", 94_u32 => "sheep/color", 95_u32 => "shulker/color"}

Protocol 772 (MC 1.21.8) — 96 component types

PROTOCOL_774 = {0_u32 => "custom_data", 1_u32 => "max_stack_size", 2_u32 => "max_damage", 3_u32 => "damage", 4_u32 => "unbreakable", 5_u32 => "use_effects", 6_u32 => "custom_name", 7_u32 => "minimum_attack_charge", 8_u32 => "damage_type", 9_u32 => "item_name", 10_u32 => "item_model", 11_u32 => "lore", 12_u32 => "rarity", 13_u32 => "enchantments", 14_u32 => "can_place_on", 15_u32 => "can_break", 16_u32 => "attribute_modifiers", 17_u32 => "custom_model_data", 18_u32 => "tooltip_display", 19_u32 => "repair_cost", 20_u32 => "creative_slot_lock", 21_u32 => "enchantment_glint_override", 22_u32 => "intangible_projectile", 23_u32 => "food", 24_u32 => "consumable", 25_u32 => "use_remainder", 26_u32 => "use_cooldown", 27_u32 => "damage_resistant", 28_u32 => "tool", 29_u32 => "weapon", 30_u32 => "attack_range", 31_u32 => "enchantable", 32_u32 => "equippable", 33_u32 => "repairable", 34_u32 => "glider", 35_u32 => "tooltip_style", 36_u32 => "death_protection", 37_u32 => "blocks_attacks", 38_u32 => "piercing_weapon", 39_u32 => "kinetic_weapon", 40_u32 => "swing_animation", 41_u32 => "stored_enchantments", 42_u32 => "dyed_color", 43_u32 => "map_color", 44_u32 => "map_id", 45_u32 => "map_decorations", 46_u32 => "map_post_processing", 47_u32 => "charged_projectiles", 48_u32 => "bundle_contents", 49_u32 => "potion_contents", 50_u32 => "potion_duration_scale", 51_u32 => "suspicious_stew_effects", 52_u32 => "writable_book_content", 53_u32 => "written_book_content", 54_u32 => "trim", 55_u32 => "debug_stick_state", 56_u32 => "entity_data", 57_u32 => "bucket_entity_data", 58_u32 => "block_entity_data", 59_u32 => "instrument", 60_u32 => "provides_trim_material", 61_u32 => "ominous_bottle_amplifier", 62_u32 => "jukebox_playable", 63_u32 => "provides_banner_patterns", 64_u32 => "recipes", 65_u32 => "lodestone_tracker", 66_u32 => "firework_explosion", 67_u32 => "fireworks", 68_u32 => "profile", 69_u32 => "note_block_sound", 70_u32 => "banner_patterns", 71_u32 => "base_color", 72_u32 => "pot_decorations", 73_u32 => "container", 74_u32 => "block_state", 75_u32 => "bees", 76_u32 => "lock", 77_u32 => "container_loot", 78_u32 => "break_sound", 79_u32 => "villager/variant", 80_u32 => "wolf/variant", 81_u32 => "wolf/sound_variant", 82_u32 => "wolf/collar", 83_u32 => "fox/variant", 84_u32 => "salmon/size", 85_u32 => "parrot/variant", 86_u32 => "tropical_fish/pattern", 87_u32 => "tropical_fish/base_color", 88_u32 => "tropical_fish/pattern_color", 89_u32 => "mooshroom/variant", 90_u32 => "rabbit/variant", 91_u32 => "pig/variant", 92_u32 => "cow/variant", 93_u32 => "chicken/variant", 94_u32 => "zombie_nautilus/variant", 95_u32 => "frog/variant", 96_u32 => "horse/variant", 97_u32 => "painting/variant", 98_u32 => "llama/variant", 99_u32 => "axolotl/variant", 100_u32 => "cat/variant", 101_u32 => "cat/collar", 102_u32 => "sheep/color", 103_u32 => "shulker/color"}

Protocol 774 (MC 1.21.11) — 104 component types

PROTOCOL_MAP = {772_u32 => PROTOCOL_772, 774_u32 => PROTOCOL_774}

Class Method Summary

Class Method Detail

def self.id_for(name : String, protocol_version : UInt32) : UInt32 | Nil #

[View source]
def self.name_for(component_type : UInt32, protocol_version : UInt32) : String | Nil #

[View source]