mirror of
https://github.com/italicsjenga/valence.git
synced 2024-12-23 22:41:30 +11:00
9c9f672a22
## Description Closes #291 - Update extractors to support Minecraft 1.19.4 - Update code generators. - Changed generated entity component names to avoid name collisions. - Update `glam` version. - Added `Encode` and `Decode` for `glam` types in `valence_protocol`. - Fixed inconsistent packet names and assign packet IDs automatically. - Remove `ident` and rename `ident_str` to `ident`. - Rework registry codec configuration. Biomes and dimensions exist as entities.`BiomeRegistry` and `DimensionTypeRegistry` resources have been added. The vanilla registry codec is loaded at startup. ### Issues - Creating new instances has become more tedious than it should be. This will be addressed later. ## Test Plan Steps: 1. Boot up a vanilla server with online mode disabled. 2. Run the `packet_inspector`. 3. Connect to the vanilla server through the packet inspector to ensure all packets are updated correctly. 4. Close the vanilla server and try some valence examples.
552 lines
11 KiB
JSON
552 lines
11 KiB
JSON
{
|
|
"entity_type": {
|
|
"allay": 0,
|
|
"area_effect_cloud": 1,
|
|
"armor_stand": 2,
|
|
"arrow": 3,
|
|
"axolotl": 4,
|
|
"bat": 5,
|
|
"bee": 6,
|
|
"blaze": 7,
|
|
"block_display": 8,
|
|
"boat": 9,
|
|
"camel": 10,
|
|
"cat": 11,
|
|
"cave_spider": 12,
|
|
"chest_boat": 13,
|
|
"chest_minecart": 14,
|
|
"chicken": 15,
|
|
"cod": 16,
|
|
"command_block_minecart": 17,
|
|
"cow": 18,
|
|
"creeper": 19,
|
|
"dolphin": 20,
|
|
"donkey": 21,
|
|
"dragon_fireball": 22,
|
|
"drowned": 23,
|
|
"egg": 24,
|
|
"elder_guardian": 25,
|
|
"end_crystal": 26,
|
|
"ender_dragon": 27,
|
|
"ender_pearl": 28,
|
|
"enderman": 29,
|
|
"endermite": 30,
|
|
"evoker": 31,
|
|
"evoker_fangs": 32,
|
|
"experience_bottle": 33,
|
|
"experience_orb": 34,
|
|
"eye_of_ender": 35,
|
|
"falling_block": 36,
|
|
"firework_rocket": 37,
|
|
"fox": 38,
|
|
"frog": 39,
|
|
"furnace_minecart": 40,
|
|
"ghast": 41,
|
|
"giant": 42,
|
|
"glow_item_frame": 43,
|
|
"glow_squid": 44,
|
|
"goat": 45,
|
|
"guardian": 46,
|
|
"hoglin": 47,
|
|
"hopper_minecart": 48,
|
|
"horse": 49,
|
|
"husk": 50,
|
|
"illusioner": 51,
|
|
"interaction": 52,
|
|
"iron_golem": 53,
|
|
"item": 54,
|
|
"item_display": 55,
|
|
"item_frame": 56,
|
|
"fireball": 57,
|
|
"leash_knot": 58,
|
|
"lightning_bolt": 59,
|
|
"llama": 60,
|
|
"llama_spit": 61,
|
|
"magma_cube": 62,
|
|
"marker": 63,
|
|
"minecart": 64,
|
|
"mooshroom": 65,
|
|
"mule": 66,
|
|
"ocelot": 67,
|
|
"painting": 68,
|
|
"panda": 69,
|
|
"parrot": 70,
|
|
"phantom": 71,
|
|
"pig": 72,
|
|
"piglin": 73,
|
|
"piglin_brute": 74,
|
|
"pillager": 75,
|
|
"polar_bear": 76,
|
|
"potion": 77,
|
|
"pufferfish": 78,
|
|
"rabbit": 79,
|
|
"ravager": 80,
|
|
"salmon": 81,
|
|
"sheep": 82,
|
|
"shulker": 83,
|
|
"shulker_bullet": 84,
|
|
"silverfish": 85,
|
|
"skeleton": 86,
|
|
"skeleton_horse": 87,
|
|
"slime": 88,
|
|
"small_fireball": 89,
|
|
"sniffer": 90,
|
|
"snow_golem": 91,
|
|
"snowball": 92,
|
|
"spawner_minecart": 93,
|
|
"spectral_arrow": 94,
|
|
"spider": 95,
|
|
"squid": 96,
|
|
"stray": 97,
|
|
"strider": 98,
|
|
"tadpole": 99,
|
|
"text_display": 100,
|
|
"tnt": 101,
|
|
"tnt_minecart": 102,
|
|
"trader_llama": 103,
|
|
"trident": 104,
|
|
"tropical_fish": 105,
|
|
"turtle": 106,
|
|
"vex": 107,
|
|
"villager": 108,
|
|
"vindicator": 109,
|
|
"wandering_trader": 110,
|
|
"warden": 111,
|
|
"witch": 112,
|
|
"wither": 113,
|
|
"wither_skeleton": 114,
|
|
"wither_skull": 115,
|
|
"wolf": 116,
|
|
"zoglin": 117,
|
|
"zombie": 118,
|
|
"zombie_horse": 119,
|
|
"zombie_villager": 120,
|
|
"zombified_piglin": 121,
|
|
"player": 122,
|
|
"fishing_bobber": 123
|
|
},
|
|
"entity_status": {
|
|
"add_sprinting_particles_or_reset_spawner_minecart_spawn_delay": 1,
|
|
"play_death_sound_or_add_projectile_hit_particles": 3,
|
|
"play_attack_sound": 4,
|
|
"stop_attack": 5,
|
|
"add_negative_player_reaction_particles": 6,
|
|
"add_positive_player_reaction_particles": 7,
|
|
"shake_off_water": 8,
|
|
"consume_item": 9,
|
|
"set_sheep_eat_grass_timer_or_prime_tnt_minecart": 10,
|
|
"look_at_villager": 11,
|
|
"add_villager_heart_particles": 12,
|
|
"add_villager_angry_particles": 13,
|
|
"add_villager_happy_particles": 14,
|
|
"add_witch_particles": 15,
|
|
"play_cure_zombie_villager_sound": 16,
|
|
"explode_firework_client": 17,
|
|
"add_breeding_particles": 18,
|
|
"reset_squid_thrust_timer": 19,
|
|
"play_spawn_effects": 20,
|
|
"play_guardian_attack_sound": 21,
|
|
"use_reduced_debug_info": 22,
|
|
"use_full_debug_info": 23,
|
|
"set_op_level_0": 24,
|
|
"set_op_level_1": 25,
|
|
"set_op_level_2": 26,
|
|
"set_op_level_3": 27,
|
|
"set_op_level_4": 28,
|
|
"block_with_shield": 29,
|
|
"break_shield": 30,
|
|
"pull_hooked_entity": 31,
|
|
"hit_armor_stand": 32,
|
|
"stop_looking_at_villager": 34,
|
|
"use_totem_of_undying": 35,
|
|
"add_dolphin_happy_villager_particles": 38,
|
|
"stun_ravager": 39,
|
|
"tame_ocelot_failed": 40,
|
|
"tame_ocelot_success": 41,
|
|
"add_splash_particles": 42,
|
|
"add_cloud_particles": 43,
|
|
"create_eating_particles": 45,
|
|
"add_portal_particles": 46,
|
|
"break_mainhand": 47,
|
|
"break_offhand": 48,
|
|
"break_head": 49,
|
|
"break_chest": 50,
|
|
"break_legs": 51,
|
|
"break_feet": 52,
|
|
"drip_honey": 53,
|
|
"drip_rich_honey": 54,
|
|
"swap_hands": 55,
|
|
"reset_wolf_shake": 56,
|
|
"prepare_ram": 58,
|
|
"finish_ram": 59,
|
|
"add_death_particles": 60,
|
|
"ears_twitch": 61,
|
|
"sonic_boom": 62,
|
|
"field_42621": 63
|
|
},
|
|
"entity_animation": {
|
|
"swing_main_hand": 0,
|
|
"wake_up": 2,
|
|
"swing_off_hand": 3,
|
|
"crit": 4,
|
|
"enchanted_hit": 5
|
|
},
|
|
"villager_type": {
|
|
"desert": 0,
|
|
"jungle": 1,
|
|
"plains": 2,
|
|
"savanna": 3,
|
|
"snow": 4,
|
|
"swamp": 5,
|
|
"taiga": 6
|
|
},
|
|
"villager_profession": {
|
|
"none": 0,
|
|
"armorer": 1,
|
|
"butcher": 2,
|
|
"cartographer": 3,
|
|
"cleric": 4,
|
|
"farmer": 5,
|
|
"fisherman": 6,
|
|
"fletcher": 7,
|
|
"leatherworker": 8,
|
|
"librarian": 9,
|
|
"mason": 10,
|
|
"nitwit": 11,
|
|
"shepherd": 12,
|
|
"toolsmith": 13,
|
|
"weaponsmith": 14
|
|
},
|
|
"cat_variant": {
|
|
"tabby": 0,
|
|
"black": 1,
|
|
"red": 2,
|
|
"siamese": 3,
|
|
"british_shorthair": 4,
|
|
"calico": 5,
|
|
"persian": 6,
|
|
"ragdoll": 7,
|
|
"white": 8,
|
|
"jellie": 9,
|
|
"all_black": 10
|
|
},
|
|
"frog_variant": {
|
|
"temperate": 0,
|
|
"warm": 1,
|
|
"cold": 2
|
|
},
|
|
"painting_variant": {
|
|
"kebab": {
|
|
"id": 0,
|
|
"width": 16,
|
|
"height": 16
|
|
},
|
|
"aztec": {
|
|
"id": 1,
|
|
"width": 16,
|
|
"height": 16
|
|
},
|
|
"alban": {
|
|
"id": 2,
|
|
"width": 16,
|
|
"height": 16
|
|
},
|
|
"aztec2": {
|
|
"id": 3,
|
|
"width": 16,
|
|
"height": 16
|
|
},
|
|
"bomb": {
|
|
"id": 4,
|
|
"width": 16,
|
|
"height": 16
|
|
},
|
|
"plant": {
|
|
"id": 5,
|
|
"width": 16,
|
|
"height": 16
|
|
},
|
|
"wasteland": {
|
|
"id": 6,
|
|
"width": 16,
|
|
"height": 16
|
|
},
|
|
"pool": {
|
|
"id": 7,
|
|
"width": 32,
|
|
"height": 16
|
|
},
|
|
"courbet": {
|
|
"id": 8,
|
|
"width": 32,
|
|
"height": 16
|
|
},
|
|
"sea": {
|
|
"id": 9,
|
|
"width": 32,
|
|
"height": 16
|
|
},
|
|
"sunset": {
|
|
"id": 10,
|
|
"width": 32,
|
|
"height": 16
|
|
},
|
|
"creebet": {
|
|
"id": 11,
|
|
"width": 32,
|
|
"height": 16
|
|
},
|
|
"wanderer": {
|
|
"id": 12,
|
|
"width": 16,
|
|
"height": 32
|
|
},
|
|
"graham": {
|
|
"id": 13,
|
|
"width": 16,
|
|
"height": 32
|
|
},
|
|
"match": {
|
|
"id": 14,
|
|
"width": 32,
|
|
"height": 32
|
|
},
|
|
"bust": {
|
|
"id": 15,
|
|
"width": 32,
|
|
"height": 32
|
|
},
|
|
"stage": {
|
|
"id": 16,
|
|
"width": 32,
|
|
"height": 32
|
|
},
|
|
"void": {
|
|
"id": 17,
|
|
"width": 32,
|
|
"height": 32
|
|
},
|
|
"skull_and_roses": {
|
|
"id": 18,
|
|
"width": 32,
|
|
"height": 32
|
|
},
|
|
"wither": {
|
|
"id": 19,
|
|
"width": 32,
|
|
"height": 32
|
|
},
|
|
"fighters": {
|
|
"id": 20,
|
|
"width": 64,
|
|
"height": 32
|
|
},
|
|
"pointer": {
|
|
"id": 21,
|
|
"width": 64,
|
|
"height": 64
|
|
},
|
|
"pigscene": {
|
|
"id": 22,
|
|
"width": 64,
|
|
"height": 64
|
|
},
|
|
"burning_skull": {
|
|
"id": 23,
|
|
"width": 64,
|
|
"height": 64
|
|
},
|
|
"skeleton": {
|
|
"id": 24,
|
|
"width": 64,
|
|
"height": 48
|
|
},
|
|
"earth": {
|
|
"id": 25,
|
|
"width": 32,
|
|
"height": 32
|
|
},
|
|
"wind": {
|
|
"id": 26,
|
|
"width": 32,
|
|
"height": 32
|
|
},
|
|
"water": {
|
|
"id": 27,
|
|
"width": 32,
|
|
"height": 32
|
|
},
|
|
"fire": {
|
|
"id": 28,
|
|
"width": 32,
|
|
"height": 32
|
|
},
|
|
"donkey_kong": {
|
|
"id": 29,
|
|
"width": 64,
|
|
"height": 48
|
|
}
|
|
},
|
|
"direction": {
|
|
"down": 0,
|
|
"up": 1,
|
|
"north": 2,
|
|
"south": 3,
|
|
"west": 4,
|
|
"east": 5
|
|
},
|
|
"entity_pose": {
|
|
"standing": 0,
|
|
"fall_flying": 1,
|
|
"sleeping": 2,
|
|
"swimming": 3,
|
|
"spin_attack": 4,
|
|
"crouching": 5,
|
|
"long_jumping": 6,
|
|
"dying": 7,
|
|
"croaking": 8,
|
|
"using_tongue": 9,
|
|
"sitting": 10,
|
|
"roaring": 11,
|
|
"sniffing": 12,
|
|
"emerging": 13,
|
|
"digging": 14
|
|
},
|
|
"particle_type": {
|
|
"ambient_entity_effect": 0,
|
|
"angry_villager": 1,
|
|
"block": 2,
|
|
"block_marker": 3,
|
|
"bubble": 4,
|
|
"cloud": 5,
|
|
"crit": 6,
|
|
"damage_indicator": 7,
|
|
"dragon_breath": 8,
|
|
"dripping_lava": 9,
|
|
"falling_lava": 10,
|
|
"landing_lava": 11,
|
|
"dripping_water": 12,
|
|
"falling_water": 13,
|
|
"dust": 14,
|
|
"dust_color_transition": 15,
|
|
"effect": 16,
|
|
"elder_guardian": 17,
|
|
"enchanted_hit": 18,
|
|
"enchant": 19,
|
|
"end_rod": 20,
|
|
"entity_effect": 21,
|
|
"explosion_emitter": 22,
|
|
"explosion": 23,
|
|
"sonic_boom": 24,
|
|
"falling_dust": 25,
|
|
"firework": 26,
|
|
"fishing": 27,
|
|
"flame": 28,
|
|
"dripping_cherry_leaves": 29,
|
|
"falling_cherry_leaves": 30,
|
|
"landing_cherry_leaves": 31,
|
|
"sculk_soul": 32,
|
|
"sculk_charge": 33,
|
|
"sculk_charge_pop": 34,
|
|
"soul_fire_flame": 35,
|
|
"soul": 36,
|
|
"flash": 37,
|
|
"happy_villager": 38,
|
|
"composter": 39,
|
|
"heart": 40,
|
|
"instant_effect": 41,
|
|
"item": 42,
|
|
"vibration": 43,
|
|
"item_slime": 44,
|
|
"item_snowball": 45,
|
|
"large_smoke": 46,
|
|
"lava": 47,
|
|
"mycelium": 48,
|
|
"note": 49,
|
|
"poof": 50,
|
|
"portal": 51,
|
|
"rain": 52,
|
|
"smoke": 53,
|
|
"sneeze": 54,
|
|
"spit": 55,
|
|
"squid_ink": 56,
|
|
"sweep_attack": 57,
|
|
"totem_of_undying": 58,
|
|
"underwater": 59,
|
|
"splash": 60,
|
|
"witch": 61,
|
|
"bubble_pop": 62,
|
|
"current_down": 63,
|
|
"bubble_column_up": 64,
|
|
"nautilus": 65,
|
|
"dolphin": 66,
|
|
"campfire_cosy_smoke": 67,
|
|
"campfire_signal_smoke": 68,
|
|
"dripping_honey": 69,
|
|
"falling_honey": 70,
|
|
"landing_honey": 71,
|
|
"falling_nectar": 72,
|
|
"falling_spore_blossom": 73,
|
|
"ash": 74,
|
|
"crimson_spore": 75,
|
|
"warped_spore": 76,
|
|
"spore_blossom_air": 77,
|
|
"dripping_obsidian_tear": 78,
|
|
"falling_obsidian_tear": 79,
|
|
"landing_obsidian_tear": 80,
|
|
"reverse_portal": 81,
|
|
"white_ash": 82,
|
|
"small_flame": 83,
|
|
"snowflake": 84,
|
|
"dripping_dripstone_lava": 85,
|
|
"falling_dripstone_lava": 86,
|
|
"dripping_dripstone_water": 87,
|
|
"falling_dripstone_water": 88,
|
|
"glow_squid_ink": 89,
|
|
"glow": 90,
|
|
"wax_on": 91,
|
|
"wax_off": 92,
|
|
"electric_spark": 93,
|
|
"scrape": 94,
|
|
"shriek": 95
|
|
},
|
|
"sniffer_state": {
|
|
"idling": 0,
|
|
"feeling_happy": 1,
|
|
"scenting": 2,
|
|
"sniffing": 3,
|
|
"searching": 4,
|
|
"digging": 5,
|
|
"rising": 6
|
|
},
|
|
"tracked_data_handler": {
|
|
"byte": 0,
|
|
"integer": 1,
|
|
"long": 2,
|
|
"float": 3,
|
|
"string": 4,
|
|
"text_component": 5,
|
|
"optional_text_component": 6,
|
|
"item_stack": 7,
|
|
"block_state": 14,
|
|
"optional_block_state": 15,
|
|
"boolean": 8,
|
|
"particle": 17,
|
|
"rotation": 9,
|
|
"block_pos": 10,
|
|
"optional_block_pos": 11,
|
|
"facing": 12,
|
|
"optional_uuid": 13,
|
|
"optional_global_pos": 23,
|
|
"nbt_compound": 16,
|
|
"villager_data": 18,
|
|
"optional_int": 19,
|
|
"entity_pose": 20,
|
|
"cat_variant": 21,
|
|
"frog_variant": 22,
|
|
"painting_variant": 24,
|
|
"sniffer_state": 25,
|
|
"vector3f": 26,
|
|
"quaternionf": 27
|
|
}
|
|
} |